Skip to content

prakhar1989/clj-spellchecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Happy Holidays 🎅

Peter Norvig's spellchecker in Clojure!

This festive season, I decided to give myself the gift of learning a lisp - Clojure! This small project is a quick experiment in migrating Python code to Clojure and getting a taste of the joy that is so fondly associated with the language.

Since I didnt want to commit a big file in Git, the project contains a small one. Grab big.txt first if you want the spellchecker to give better results!

To run

$ git clone https://github.com/prakhar1989/spellchecker
$ cd spellchecker

#optional step
$mv ~/mybigfile.txt resources/words-file.txt


$ lein repl
(correct "speling" nwords)
> spelling

To test

$ lein test

About

Spell Checker in Clojure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published