languagetool-org / languagetool

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

Compounds with "Teilnahme-" #3792

Open Discostu36 opened 3 years ago

Discostu36 commented 3 years ago

The spellchecker does not accept compounds with "Teilnahme". The following words have already been added to spelling.txt:

I just wanted to add "Teilnahmezeitraum" as well, but shouldn't these words work without adding them to the dictionary? Usually, LT does accept compounds of two known words, doesn't it?

Discostu36 commented 3 years ago

Just noticed that this is quite similar to the last issue I opened: https://github.com/languagetool-org/languagetool/issues/3667. Maybe these should be merged.

danielnaber commented 3 years ago

We rely on Hunspell, but hunspell only accepts words as parts of compounds when certain flags are used (COMPOUNDBEGIN x, COMPOUNDMIDDLE y, COMPOUNDEND z). You could maybe add the flag to "Teilnahme" in de_DE.dic, but I recommend running a regression test, i.e. checking a large list of words to make sure nothing unexpected happens.