GitbookIO / hunspell-spellchecker

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

LibreOffice's en_GB dictionary compound rules are treated as comments #21

Open dan-pugsley opened 3 years ago

dan-pugsley commented 3 years ago

Libre Office specifies compound rules for the en_GB dictionary as follows:

COMPOUNDRULE #*0{ COMPOUNDRULE #*@}

These are removed by the following line of code:

https://github.com/GitbookIO/hunspell-spellchecker/blob/48299ddc6a24f65e6b715677385287d6837f9c73/lib/dictionary.js#L208