Hunspell offers a -d option to load various dictionaries (man hunspell). Would it be possible to implement this possibility in ffi/hunspell library?
Multi-dictionaries are useful when only one of the specified dictionaries is base dictionary in terms of hunspell, that is, the one with both .dic and .aff files and all other are only .dic dictionaries. For example, -d option allows the following usage:
Note that ffi-hunspell 0.6.0 is out which added Dictionary#add_dic support for adding additional dictionary files to an existing dictionary, but requires a path to the dictionary file.
Hunspell offers a
-d
option to load various dictionaries (man hunspell
). Would it be possible to implement this possibility inffi/hunspell
library?Multi-dictionaries are useful when only one of the specified dictionaries is base dictionary in terms of hunspell, that is, the one with both
.dic
and.aff
files and all other are only.dic
dictionaries. For example,-d
option allows the following usage:Why about the following syntax?
Please note the limitations of multi-dictionaries: https://github.com/hunspell/hunspell/issues/348
EDIT: looks like non-merged pull request tries to fix this issue. Which raises an important question if this project is still maintained.