Repository navigation
Conversation
I propose that we remove crate from codespell. Two reasons: * it is an english word: https://en.wikipedia.org/wiki/Crate * it is the name of a library in Rust: https://doc.rust-lang.org/book/ch07-01-packages-and-crates.html One of my project ``` $ codespell src|grep crate|wc -l 519 ``` It had to be excluded from Firefox codespell integration:
All of the words in the rare dictionary are English words, hence it's the rare dictionary, they are just (supposed to be) rarer than what they correct to.
That does mean it gets more hits than most.
That means the system works! Rust has pretty much flooded the market, with it's term and the idea of crates, but after a bit of searching I did find this example (going the other way): Compare the two highlighted lines, so people do make that typo! So personally I think we should keep it. The rare dictionary is disabled by default. I did ponder a while ago if the rare dictionary should be split up more: But words from there will always have issues for some people, e.g. chancel appears in OpenStreetMap |
Hmm, interesting. I don't recall enabling the rare dictionary explicitly, but "crate" does get reported for Rust projects if I run |
Oops, what gives is I lied: codespell/codespell_lib/_codespell.py Line 65 in 079b649 Although I've still had to ignore stuff for various reasons in every sizeable code base I've run it against: So while removing crate would help some rust users, it would hinder all the create typo makers. |
|
With the given discussion and reasonings, I'll close those this PR. We can reopen if anyone sees fit. |
I propose that we remove crate from codespell.
Two reasons:
One of my project
It had to be excluded from Firefox codespell integration:
https://searchfox.org/mozilla-central/source/tools/lint/spell/exclude-list.txt#10