Javascript Spell Checking Methods

后端 未结 4 944
暖寄归人
暖寄归人 2020-12-15 11:25

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 cont

相关标签:
4条回答
  • 2020-12-15 11:51

    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..

    0 讨论(0)
  • 2020-12-15 12:05

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

    0 讨论(0)
  • 2020-12-15 12:13

    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/

    0 讨论(0)
  • 2020-12-15 12:13

    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.

    0 讨论(0)
提交回复
热议问题