Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

"ru-RU" locale not working. #113

Open
GoPavel opened this issue Mar 31, 2019 · 0 comments
Open

"ru-RU" locale not working. #113

GoPavel opened this issue Mar 31, 2019 · 0 comments

Comments

@GoPavel
Copy link

GoPavel commented Mar 31, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant