The language-spelling package

[Tags: library, public-domain]

Haskell library meant to be a set of tools to correct spelling mistakes, homophones, and OCR errors.

Sample session:

ghci> :m + Language.Distance.Search.BK
ghci> distance "foo" "bar" :: Distance DamerauLevenshtein
3
ghci> let bk = foldr insert empty ["foo", "foa", "fooa", "ofo", "arstu", "nana", "faa"] :: BKTree String DamerauLevenshtein
ghci> query 0 "foo" bk
[("foo",Distance 0)]
ghci> query 2 "foo" bk
[("faa",Distance 2),("foa",Distance 1),("fooa",Distance 1),("foo",Distance 0),("ofo",Distance 1)]

TODO:


Properties

Versions0.1, 0.1.1, 0.1.2, 0.2, 0.3, 0.3.1, 0.3.2
Dependenciesarray, base (>=3 && <5), bk-tree, bytestring, containers, ListLike, listlike-instances, text, tst, vector (>=0.5)
LicensePublicDomain
AuthorFrancesco Mazzoli (f@mazzo.li)
MaintainerFrancesco Mazzoli (f@mazzo.li)
CategoryNatural Language Processing
Home pagehttps://github.com/bitonic/language-spelling
Bug trackerhttps://github.com/bitonic/language-spelling/issues
Source repositoryhead: git clone git://github.com/bitonic/language-spelling.git
Upload dateSun Jan 20 10:29:27 UTC 2013
Uploaded byFrancescoMazzoli
Downloads426 total (25 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees