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(dict): 133 assorted typos #613

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Conversation

NathanBaulch
Copy link
Contributor

Recreating #612...

Great tool! I recently fixed thousands of typos in a popular open source project and thought maybe I could contribute the 133 typos your tool missed. Let me know if any of the corrections are inappropriate.

@epage epage enabled auto-merge November 22, 2022 03:52
@epage epage merged commit db7cf56 into crate-ci:master Nov 22, 2022
@NathanBaulch
Copy link
Contributor Author

Thanks for cleaning that up, next time will be smoother. 👍

@NathanBaulch NathanBaulch deleted the newtypos branch November 22, 2022 04:27
@@ -32948,6 +33022,7 @@ nigthmares,nightmares
nihilim,nihilism
nihilisim,nihilism
nihilsim,nihilism
nilable,nillable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure the best way to go about this, but nilable is actually fairly common in the Ruby world. E.g. https://sorbet.org/docs/nilable-types.

I worked around it by just adding it to extended-words, which is fine if we think this is the preferred spelling outside of certain ecosystems, but it could be a point of false positives.

Copy link
Contributor Author

@NathanBaulch NathanBaulch Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with removing it to reduce friction, but am also curious about how best to handle common spelling mistakes that are widely accepted in certain languages/frameworks/communities. Another good example is "referer" which is misspelled in the original RFC and used widely in HTTP frameworks. This is one of the first words I add to all my extended-words configs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather allow more typos than correct things that shouldn't be typos.

@Blacksmoke16 would it be ok for nilable to be in the default extend-words for Ruby only or would it appear in enough other contexts to need to be generally allowed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but am also curious about how best to handle common spelling mistakes that are widely accepted in certain languages/frameworks/communities

IMO it would be nice if there was a more selective way to denote a typo is expected. E.g. such that I could mark a specific usage of referer as correct, but not prevent that from flagging other contexts. Currently, afaik, the only way to handle that is to just globally accept the typo by adding it to extended-words, or accept it for a given "type" of file.

would it be ok for nilable to be in the default extend-words for Ruby only

For my particular use case, it would need to be Ruby (.rb), Crystal (.cr), and Markdown (.md) in order to cover usages and documentation related to the code. Did a quick google of "nilable" and saw some things in there about some Go libraries, and ClojureScript.
So guess it depends on how many contexts is enough to suggest it should be globally allowed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #635 for nilable.

For referer, we have a couple of issues around narrowing things. If one doesn't fit, feel free to create a new issue.

@epage epage mentioned this pull request Dec 6, 2022
epage added a commit to epage/typos that referenced this pull request Dec 6, 2022
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

Successfully merging this pull request may close these issues.

3 participants