Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Flag easy-to-fix typos in set phrases that pass spellcheck #532

Open
hippietrail opened this issue Jan 29, 2025 · 1 comment
Open

Comments

@hippietrail
Copy link
Contributor

I propose having one lint that covers all the easy cases of making a typo within a common phrase where each word is still a legitimate dictionary word.

Anything that requires additional heuristics or a typo in a single word that results in another dictionary word don't belong here. I'll try to think of examples of those to add here. The former probably warrant a lint each of their own.

Examples of ones that do belong here:

  • trail and error → trial and error

My browser can detect the first one:

Image

Examples that don't belong here:

  • I though of an example → I thought of an example (single word, requires more logic to catch varied cases)
  • underling → underlying (single word, so would require heuristics)
@hippietrail hippietrail changed the title Flag easy-to-fix typos in set phrases that pass spellcheck feat: Flag easy-to-fix typos in set phrases that pass spellcheck Jan 30, 2025
@elijah-potter
Copy link
Collaborator

This is what was covered in #550. I'll add more cases in #589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants