-
Notifications
You must be signed in to change notification settings - Fork 108
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
Conversation
Thanks for cleaning that up, next time will be smoother. 👍 |
@@ -32948,6 +33022,7 @@ nigthmares,nightmares | |||
nihilim,nihilism | |||
nihilisim,nihilism | |||
nihilsim,nihilism | |||
nilable,nillable |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 defaultextend-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.
There was a problem hiding this comment.
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.
See conversation in crate-ci#613
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.