Skip to content

juji-io/symspell-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

symspell-clj

Clojars Project cljdoc badge

SymSpell spell checker for Clojure.

SymSpell works by generating delete-only candidates and indexing them, so the searching and fuzzy matching are extremely fast.

This is based on a Java port of the SymSpell spell checker. A few convenient functions are also provided.

Usage

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

(def sc (sp/new-spellchecker))

;; get a suggested corrected string
(sp/get-suggestion sc "Wht")
;;==> "What"

;; can do multiple words
(sp/get-suggestion sc "Wht is tht?")
;;==> "What is that?"

;; also does word segmentation
(sp/get-suggestion 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"

Status

SymSpell is widely used and ported to many languages. This Clojure library is new, but is already used in production at Juji.

About

SymSpell spell checker in Clojure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published