Liking cljdoc? Tell your friends :D

symspell-clj

SymSpell spell checker in Clojure.

This is based on a Java port of the SymSpell spell checker.

Usage

(require '[symspell-clj.core :as sp])

(def sc (sp/new-spellchecker))

;; spell checking individual word, return suggestions and corresponding edit distance
(sp/lookup sc "wht")
;;==> (["what" 1] ["whit" 1] ["whet" 1])

;; spell checking multiple words, this also does word segmentation
(sp/lookup-compound sc "whereis th elove hehad dated forImuch of thepast who couqdn'tread in sixtgrade and ins pired him")
;;==> (["where is the love he had dated for much of the past who couldn't read in sixth grade and inspired him" 10])

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close