Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Change spellchecking to require US English

Open cake-pie opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

User-facing text is mostly standardize to use US spelling instead of UK or other locales.

We have a spellchecker tool based on top of pyspellchecker that runs on PRs, but it does not differentiate between American, British or other spelling variations.

Solution you would like.

We have a custom wordlist that adds words that are not already in the base dictionary.

Add a wordlist of non-US spellings (colour, sulphur, etc) that we want to exclude, even if they are in the base dictionary.

See: https://pyspellchecker.readthedocs.io/en/latest/quickstart.html#adding-and-removing-terms-from-a-dictionary

Describe alternatives you have considered.

I hoped that this would be something that could be easily fixed by changing a configuration setting somewhere, but pyspellchecker doesn't have that; there aren't separate en-US vs en-GB dictionaries -- looks like its dictionaries are just made by ingesting some large corpus of text and tabulating word frequencies.

Additional context

No response

cake-pie avatar Feb 01 '23 02:02 cake-pie

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

github-actions[bot] avatar Mar 03 '23 06:03 github-actions[bot]