hunspell-spellchecker icon indicating copy to clipboard operation
hunspell-spellchecker copied to clipboard

Compound rules don't handle cases like "Hochwasser" in dictionary-de

Open FeepingCreature opened this issue 5 years ago • 1 comments

The dictionary-de is generated from igerman98, using the generated hunspell/de_DE.{dic,aff}. In those, "Hochwasser" (flooding, literally high water) is handled as compound of "Hoch" und "Wasser". This can be tested by calling hunspell on the dic/aff files manually and verifying that it doesn't parse Hochwasser as an error. However, hunspell-spellchecker thinks "Hochwasser" is an error.

FeepingCreature avatar Mar 25 '20 13:03 FeepingCreature

Repro:

repro.dic:

2
Hoch/X
wasser/Z

repro.aff:

COMPOUNDBEGIN A
COMPOUNDEND Z

COMPOUNDPERMITFLAG C

SFX X Y 1
SFX X 0 0/AC .

FeepingCreature avatar Mar 25 '20 13:03 FeepingCreature