retextjs/retext-spell

Not available via NPM :O(

s-a opened this issue · 7 comments

s-a commented
Not available via NPM :O(

Yup, it doesn’t work yet, nodehun is a bit broken and I couldn’t get it to pass.

I started work on an alternative Hunspell-compatible JavaScript implementation, but it’s a lot of work (reverse engineering, as the license of hunspell is not permissive) and I shelved it for now :( I cannot yet tell you when it’s going to work! :(

s-a commented

just found this which look promising. https://github.com/atom/node-spellchecker

s-a commented

as far as i can see we could write a simple retext plugin to adapt node-spellchecker module right?

It doesn’t support dictionaries unfortunately, which I’d really like!

Ah, found it!

However, from what I see, that function receives two arguments: a language tag (for example, en_US), and a directory name (e.g., foo/bar). Then, it loads files in that directory, with names of the language, and extensions of either .aff or .dic. Meaning, the list of dictionaries I published wont work: wooorm/dictionaries :(

Closing this for now, sozzzz. Somewhere in the future!