spellingBee icon indicating copy to clipboard operation
spellingBee copied to clipboard

Add support for differents languages

Open aloisdg opened this issue 10 years ago • 5 comments

Hello,

It would be nice to add support for differents languages. Nice project you got here.

Cheers,

aloisdg avatar Dec 25 '15 21:12 aloisdg

Hey @aloisdg, I would love to add support for other languages! Would you be able to help me by providing a list of common mispellings? The whole world replacement magic behind the spelling bee is in https://github.com/dawsonbotsford/spellingBee/blob/master/words/words.txt but as you already know, there is only support for english at the moment.

I would totally merge a PR if you would help. The left side is the mispelled word and the right side is that same word spelled properly. Problems may arise with apostrophes, dashes, or spaces, but we'll deal with those when we get there!

dawsbot avatar Dec 25 '15 21:12 dawsbot

I can help you in french. If you want to support languages, it may be useful to add a code after the name "words". For example, if you choose the IETF language tag (or ISO 639-1) it will look like this:

words.en-us.txt // with words{delimiter}{code}.txt

and for the french

words.fr.txt

I may look to create this later (tomorrow?)

aloisdg avatar Dec 25 '15 21:12 aloisdg

That's an awesome idea, adding that delimeter. If you could PR the french file in that case, I can rename the original and integrate them in the final project. Sound good?

dawsbot avatar Dec 26 '15 05:12 dawsbot

:+1:

aloisdg avatar Dec 26 '15 06:12 aloisdg

Also some words are commoms (name "Bernouilli->Bernoulli", "Gnu->GNU" or word from another language "Blitzkreig->Blitzkrieg"). Could we create a base for this?

aloisdg avatar Dec 26 '15 08:12 aloisdg