Closed rsmith-nl closed 3 years ago
Awesome find, thank you :)
It was false assumption on my side that with "
Digging deeper in Hunspell's code, I found out that morphological aliases should be split of the stem with \t
, otherwise it is a part of the word indeed.
The dictionary now loads successfully in spylls (and indeed suggests "boekentop 10" for "boekentop10" and "boekentop-10"), I'll just redocument it a bit and push/release.
Thank you for the time you spent on the investigation!
Victor,
Thank you for writing spylls
!
Over the years I've tried using hunspell
for checking LaTeX files several times.
But even with the -t
flag it insists on checking LaTeX command names, which is silly and annoying. With spylls
it will become easier to write something that works better.
The new version (0.1.2
) was released, it should hopefully work with Dutch dictionaries!
When I tried to load the Dutch dictionary from https://github.com/OpenTaal/opentaal-hunspell, it failed:
Looking at the
nl.dic
file, the relevant word is on line 18906:boekentop 10
.Since hunspell accepts this dictionary, and uses it:
This seems to indicate that the comment on line 56 of
hunspell/readers/dic.py
:# If it is just numeric AND not the first part in string, it is "morphology alias"
is not correct. I cannot find the term "morphology alias" inhunspell(5)
, so I'm not sure what is meant by that. The manual does show numerical flags used. But numbers in the stem should not be interpreted, AFAICT.