Remove "sting" correction from dictionary_rare.txt#3826
Remove "sting" correction from dictionary_rare.txt#3826TheGiraffe3 wants to merge 1 commit intocodespell-project:mainfrom
Conversation
|
Indeed, I guess that this is a frequent typo in the context of source code, which was the initial target of this tool. |
|
Should I move it to |
Everything in the rare dictionary is a word, that's its literal definition! codespell/codespell_lib/_codespell.py Line 74 in e61ac16 You can either not use the rare dictionary, or exclude this particular word depending on your preference.
I think the ngrams would look very different against a corpus of source code (if anyone has data for that). As I raised ages ago ( #1469 ), should we split the rare dictionary. Tangentially also as @DimitriPapadopoulos raised, should it not auto-correct #3651 . I assume that happened and caused this PR @TheGiraffe3 ?
No, that's specifically for words that are valid in code, but not elsewhere (e.g. thead is a table header in HTML, but would be a typo elsewhere). |
|
No, I opened this PR because a GitHub Action is failing on one of my repositories every time I change a specific line (and forget to readd it to .codespell.exclude), and "sting" seemed to be a perfectly valid word to me. I can close the PR (as with #1902) if you want, and I'll figure out how to disable the rare dictionary. |
You can also ignore just the specific word |
"sting" is a word.