retextjs / retext-spell

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

Not available via NPM :O( #2

Closed s-a closed 8 years ago

wooorm commented 8 years ago

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 8 years ago

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

s-a commented 8 years ago

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

wooorm commented 8 years ago

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

s-a commented 8 years ago

I see them here https://github.com/atom/node-spellchecker/tree/master/vendor/hunspell_dictionaries or what do you mean?

wooorm commented 8 years ago

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 :(

wooorm commented 8 years ago

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