Skip to content

Spelling

In every repository, gspot checks the spelling of code, comments, and docs.

The typos spell checker accepts the spellings of every English dialect, because spelling.locale is en by default. To require one dialect, choose en-us, en-gb, en-ca, or en-au:

gspot set spelling.locale en-gb

typos then also reports the spellings of the other dialects.

typos reads every file as English. With the translations configuration, gspot leaves the message files of other languages in translations.messages_folder out of the spelling check. The English files, such as en.json and en-GB.json, stay in it.

To accept a word, such as a product name, add it with a reason, and Vale then accepts the word too:

gspot set spelling.allowed_words Acmeflow --reason "Acmeflow is our product name."