edit-distance

Levenshtein and restricted Damerau-Levenshtein edit distances http://github.com/phadej/edit-distance

LTS Haskell 8.15:0.2.2.1
Stackage Nightly 2017-05-27:0.2.2.1
Latest on Hackage:0.2.2.1
BSD3 licensed by Max Bolingbroke
Maintained by Oleg Grenrus

Module documentation for 0.2.2.1

Edit Distance Algorithms

Build Status Hackage

Installing

To just install the library:

cabal configure
cabal build
cabal install

Description

Edit distances algorithms for fuzzy matching. Specifically, this library provides:

They have been fairly heavily optimized. Indeed, for situations where one of the strings is under 64 characters long we use a rather neat "bit vector" algorithm: see the authors paper and the associated errata for more information. The algorithms could be faster, but they aren't yet slow enough to force us into improving the situation.

Example

Text.EditDistance> levenshteinDistance defaultEditCosts "witch" "kitsch"
2
comments powered byDisqus