Skip to content
ruby implementation of Norvig's spell corrector
Find file
Latest commit c8823bc cloudhead style changes, man I used to code funky
Failed to load latest commit information.
README No commit message
holmes.txt init
spell-correct.rb style changes, man I used to code funky


ruby spell-correct

My implementation of Peter Norvig's python spell-corrector, found here: 

Focus is on conciseness, not performance.

I provided a .txt file to train it, called holmes.txt; it's all the sherlock holmes books concated together. For better results, download which contains a million words or so..

Note that the training material cannot be a dictionary, as it must help the corrector figure out which words are the most frequently used.
Something went wrong with that request. Please try again.