languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.43k stars 1.4k forks source link

[core] transfer (German)NumberInWordFilter to ES, EN, FR, NL #5866

Open udomai opened 3 years ago

udomai commented 3 years ago

@jaumeortola, Stefan has written a filter:

The NumberInWordFilter.java and its language-specific instance GermanNumberInWordFilter.java. You can see it in action in the DE grammar.xml's ZAHL_IM_WORT:

If someone writes "Grüß0e", the filter strips away the unexpected digit and checks if the word is in the DE dictionary. If it is, it will suggest that word only. If it is not, it will then look for similar words in the dictionary and propose five of them.

At your convenience, could you please create these?


After that, rule developers can then proceed to creating these rules:

jaumeortola commented 3 years ago

In some languages, perhaps the current spelling suggestions are good enough. But let's see.

udomai commented 3 years ago

Whoa, that was fast. Thank you very much! You even made it for CA and added rules for EN, ES, & CA! 🙏