Javascript Spell Checking Methods

巧了我就是萌 提交于 2019-11-28 23:46:25

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/

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

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

ITRob

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!