Better HN
topnewbestaskshowjobs
Log inSign up

r-c-r

3 karma · joined Sep 8, 2016 (10y ago) · 2 submissions

Submissions

comment 10y ago · link · parent

I added a spelling corrector to an application a while back. I tried a couple of libraries that implement these ideas. Problem is it can be slow for big words.

I stumbled across this algorithm which is much faster if you allow some time to pre-process your dictionary. http://blog.faroo.com/2012/06/07/improved-edit-distance-base...

I implemented it here for fun in common lisp. Excuse the ugly code. https://github.com/RyanRiddle/lispell

comment 10y ago · link · parent

Have you tried hunspell?

https://hunspell.github.io/