Skip to content Skip to sidebar Skip to footer

Javascript Spell Checking Methods

Hey, I'm making a Web Based anagram game for fun and practice. The game presents the player with a word and the player needs only to construct new words out of letters contained in

Solution 1:

John Resig (of jQuery fame) recently wrote a series of blog posts about fast spell checking for a Javascript-based anagram game he's working on.

http://ejohn.org/blog/dictionary-lookups-in-javascript/http://ejohn.org/blog/javascript-trie-performance-analysis/http://ejohn.org/blog/revised-javascript-dictionary-search/

You might be able to skip to the last one where he wraps up all his findings there. It is quite in depth, measuring up look-up speed, download time, initialization time..

Solution 2:

JavaScript spell-checking libraries do exist. I ran across this a little while ago: http://www.chrisfinke.com/2011/03/31/announcing-typo-js-client-side-javascript-spellchecking/

Solution 3:

I've used JSpell Evolution before. Once you get past the annoying installation/setup process, it works pretty well.

Solution 4:

There are plenty of free dictionaries online that include plurals, hyphenations etc.

E.g. a quick Google search found these dictionaries which support the spell checking functions of OpenOffice.

Have a Google. You can always aggregate several dictionaries into a massive super-dictionary!

Have fun.

Rob.

Post a Comment for "Javascript Spell Checking Methods"