Spell Checker in Clojure
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
resources
src/spellchecker
test/spellchecker
.gitignore
LICENSE
README.md
project.clj

README.md

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