codespell-project / codespell

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

Incorrect spelling suggestion for "nome" to "gnome" - Nome, Alaska is a real place #2811

Open jfx2006 opened 1 year ago

jfx2006 commented 1 year ago

PR #2675 added a mapping for "nome" to "gnome".

I have no doubt that people make this mistake frequently, but Nome, Alaska does exist and is listed in the IANA Timezone database's zone.tab file.

agusmakmun commented 7 months ago

@jfx2006 we have this issue where we need that Nome word because of using the timezone.

But the codespell still marked as fail even after adding to the ignore words list.

[codespell]
skip = *.po,*/static,*.png,*.jpg,*.jpeg,*.svg,*.ico,*.zip,*.pdf
ignore-words-list=delink,mimicing,beforeall,afterall,nd,Nome <<====
count =
quiet-level = 3

Result: Screenshot 2024-03-04 at 23 15 32

DimitriPapadopoulos commented 7 months ago
ignore-words-list=delink,mimicing,beforeall,afterall,nd,nome