codespell-project / codespell

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

Add spelling corrections for morphology #3379

Closed adrien-berchet closed 6 months ago

adrien-berchet commented 6 months ago

https://github.com/search?q=morpholgy&type=code => 416 hits https://github.com/search?q=morpholgies&type=code => 55 hits https://github.com/search?q=morphlogy&type=code => 260 hits https://github.com/search?q=morphlogies&type=code => 3 hits https://github.com/search?q=mophology&type=code => 1.8k hits https://github.com/search?q=mophologies&type=code => 13 hits

adrien-berchet commented 6 months ago

I think the CI fail is not related to this PR :thinking:

DimitriPapadopoulos commented 6 months ago

If you feel like it, you could add the same variations of morphological, morphologist/morphologists, and morpheme/morphemes.

adrien-berchet commented 6 months ago

Good point. I checked and I found these hits: https://github.com/search?q=morpholgical&type=code => 182 hits https://github.com/search?q=morphlogical&type=code => 436 hits https://github.com/search?q=morphlogist&type=code => 1 hit https://github.com/search?q=morpholgist&type=code => 3 hits https://github.com/search?q=morphlogists&type=code => 0 hit https://github.com/search?q=morpholgists&type=code => 3 hits

So I added only the variations for morphological because the others are very rare. And the ones for morpheme return many false positive hits so I don't know how many real hits we could finf. But I can add more variations if you wish.

DimitriPapadopoulos commented 6 months ago

Thank you @adrien-berchet.