Javascript Spell Checking Methods

后端 未结 4 975
暖寄归人
暖寄归人 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..

提交回复
热议问题