codemirror-spell-checker icon indicating copy to clipboard operation
codemirror-spell-checker copied to clipboard

Include other languages and make it configureable

Open jankatins opened this issue 8 years ago • 11 comments

It would be nice if one could spell check different languages...

jankatins avatar Mar 09 '16 19:03 jankatins

Found something interesting: http://stackoverflow.com/questions/30704264/how-to-access-chrome-spell-check-suggestions-in-javascript http://stackoverflow.com/questions/12040169/how-can-i-access-chromes-spell-check-dictionary https://src.chromium.org/viewvc/chrome/trunk/deps/third_party/hunspell_dictionaries/

jackycute avatar Apr 12 '16 17:04 jackycute

In theory, all you'd need to do would be to download a different dictionary.

WesCossick avatar Apr 12 '16 18:04 WesCossick

@jackycute I'm wondering if Chromium's dictionaries would be better than the ones used currently. I've noticed there are a number of words, abbreviations, etc. that are missing.

WesCossick avatar Apr 12 '16 18:04 WesCossick

Yeah, I mean I might to do so.

The only thing I'm not satisfied with your dictionaries is that GitHub and HackMD are marked as error now. (Maybe camel case spell check is not working here) But this is still a great repo, thank you @WesCossick !

jackycute avatar Apr 12 '16 18:04 jackycute

I am looking to use your library in my own project, which is designed to be mulitlanguage. I only have 2 languages now(english and french), but it can be extended.

I want to use this project as a dependency (bower or npm).

I think that you can make this project configureable to use others dictionnaries like these ones: https://github.com/titoBouzout/Dictionaries or any others, so you don't need to maintain all the dictionnaries of the world, and we can use what we want (as dependencies).

It's a very good idea !

Ajrarn avatar Apr 15 '16 00:04 Ajrarn

I'd vote for some standardized way to add custom words to the otherwise-standard dictionary it downloads. Like

"add_words": ["GitHub", "blahblahblah"]

chriscoyier avatar May 25 '16 15:05 chriscoyier

Note to self... look into https://github.com/titoBouzout/Dictionaries

WesCossick avatar Jul 15 '16 14:07 WesCossick

@chriscoyier definitely agree with you here. Adding an option to pass an array or "ignored words" or custom words would be the deal-breaker.

ghost avatar Aug 30 '16 06:08 ghost

I'd also love to see support for other languages besides english added to codemirror-spell-checker. Cheers!

antennaio avatar Jul 24 '17 12:07 antennaio

All the Popular Browsers can handel spell check so why not use this option?

http://caniuse.com/#feat=spellcheck-attribute

it looks like extremely easy to implement:

https://stackoverflow.com/questions/21306199/setting-spellcheck-language-in-google-chrome

or im wrong?

EDIT: I have found a previous discussion about Browser SpellChek: https://github.com/codemirror/CodeMirror/issues/1017

i5heu avatar Sep 16 '17 07:09 i5heu

Never gonna happen. PR https://github.com/sparksuite/codemirror-spell-checker/pull/39 allowing this change has been sitting around unmerged for 6+ years.

alfonsrv avatar Aug 26 '23 15:08 alfonsrv