retextjs / retext-spell

plugin to check spelling
https://unifiedjs.com
MIT License
73 stars 16 forks source link

Multiple dictionaries #15

Closed maxwondercorn closed 5 years ago

maxwondercorn commented 5 years ago

Is it possible to allow more than one dictionary for retest-spell? I have an open source project where I need to the use an English dictionary for general spell checking and a project specific one for the technical/unique words.

I need an affix file for the project specific, so I can't use the personal dictionary option. NSpell supports multiple dictionaries being passed.

wooorm commented 5 years ago

dictionary can be any function. It’s given a function (cb(err, res)), and you must call that function with err if loading fails, or res if successful, where res is either one dictionary or an array of dictionaries!