codespell-project / codespell

check code for common misspellings
GNU General Public License v2.0
1.9k stars 466 forks source link

`loath` is not much rarer than `loathe` so it shouldn't be linted #3522

Closed corneliusroemer closed 2 months ago

corneliusroemer commented 2 months ago

I just committed a false positive when checking Python peps because loath was rewritten to loathe and I wasn't aware that loath is a thing. It's the adjective, whereas loathe is a verb.

Per Google ngram, loath is as common as loathe, so it shouldn't be a clear rewrite. It should simply be removed as it's not a clear typo nor is one much more common than the other.

See https://github.com/python/peps/pull/3909/commits/ee430d694f88eff4181e9c06d28104b4697d9cfe where this happened live.

https://github.com/codespell-project/codespell/blame/f0695997de58d3b9c790a940cbb94e14640bdc97/codespell_lib/data/dictionary_rare.txt#L162