GitbookIO / hunspell-spellchecker

Parse and use Hunspell dictionaries in Javascript
Apache License 2.0
77 stars 17 forks source link

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

Open FeepingCreature opened 4 years ago

FeepingCreature commented 4 years ago

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 commented 4 years ago

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 .