// Parse an hunspell dictionary that can be serialized as JSON
var DICT = spellchecker.parse([
{
aff: fs.readFileSync("./en_EN.aff"),
dic: fs.readFileSync("./en_EN.dic")
}, {
dic: fs.readFileSync("./fr_FR.dic")
}, {
dic: fs.readFileSync("./custom_dictionary.dic")
}
]);
Adding several dictionaries would look like:
What do you think about this possibility?