languagetool icon indicating copy to clipboard operation
languagetool copied to clipboard

[en] replace.txt for British/American words

Open jaumeortola opened this issue 7 months ago • 2 comments

(Related to https://github.com/languagetool-org/languagetool/issues/10721)

There is a file that suggests replacements for American -> British words in the en-GB variant: https://github.com/languagetool-org/languagetool/blob/master/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/en-GB/replace.txt

automaker=carmaker
garbage=rubbish

But it works only partially. It works only for words that are allowed by the en-GB speller (garbage, but not automaker). image

Possible solutions:

  1. Add the American words to the British spelling dictionary.
  2. Give higher priority to the rule EN_GB_SIMPLE_REPLACE_ (prio=-50) so that it is not hidden by MORFOLOGIK_RULE_EN_GB (prio=-10).

@MikeUnwalla @AzadehSafakish @evan-defran-lt

jaumeortola avatar Jul 22 '24 10:07 jaumeortola