Skip to content
/ symspell Public

Haskell implementation of the SymSpell spelling correction algorithm

Notifications You must be signed in to change notification settings

cbeav/symspell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell SymSpell

The SymSpell algorithm pre-computes all deletions within fixed distance of a source dictionary. Leveraging a symmetry in edit distance, this can massively restrict the search space for spell checking words.

This project implements the algorithm in Haskell, where it is much less verbose than the original C#.

Building

To compile with Stack:

stack build

Example Server

You can then bring up a simple REST API with:

stack exec symspell-server

To issue a request:

curl -d '{"word":"hamburgre"}' -H 'Content-type: application/json' -X POST localhost:8080/top

About

Haskell implementation of the SymSpell spelling correction algorithm

Resources

Stars

Watchers

Forks

Packages

No packages published