This works
from hunspell2 import HunSpell
hun = HunSpell('/usr/share/hunspell/en_US.dic')
hun.suggest('0000-0049')
and results in []
However this
from hunspell2 import HunSpell
hun = HunSpell('/usr/share/hunspell/es_ES.dic')
hun.suggest('0000-0049')
results in this error
File "./.venv/lib/python3.13/site-packages/hunspell2/hunspell.py", line 34, in suggest
if ans[0] != "&":
~~~^^^
IndexError: string index out of range
>>> from hunspell2 import HunSpell
Can you fix this please?
This works
and results in
[]However this
results in this error
Can you fix this please?