atom / node-spellchecker

SpellChecker Node Module
http://atom.github.io/node-spellchecker
MIT License
300 stars 108 forks source link

"ru-RU" locale not working. #113

Open GoPavel opened 5 years ago

GoPavel commented 5 years ago

I try to use spell-check plugin in Atom with Russian and English languages together, but that views all russian words like miscorrect.

I have enough language support:

$ hunspell -D
...
AVAILABLE DICTIONARIES (path is not mandatory for -d option):
...
/usr/share/myspell/en_US
/usr/share/myspell/ru_RU

So I try to run spellchecker standalone and get same resault:

var spellchecker = require('spellchecker');
spellchecker.setDictionary('ru-RU', '/usr/share/myspell');
spellchecker.setDictionary('en-US', '/usr/share/myspell');
console.log(spellchecker.isMisspelled('say'));
console.log(spellchecker.isMisspelled('bobz'));
console.log(spellchecker.isMisspelled('Привет'));
console.log(spellchecker.isMisspelled('Приввет'));
$ node run.js
...
false
true
true
true

I think it's bug, but I'm not sure.