Clone this repo:

Branches

  1. d188e65 More extensive pointers by Kilian Evang · 7 months ago master
  2. dffc232 Added link to doc to README by Kilian Evang · 7 months ago
  3. 1a14278 Merge branch 'keegancsmith-master' by Kilian Evang · 1 year, 3 months ago
  4. a25f4c2 Also test DistanceForMatrix(MatrixForStrings()) by Keegan Carruthers-Smith · 1 year, 3 months ago
  5. 4041401 A more detailed implementation comment by Keegan Carruthers-Smith · 1 year, 3 months ago

golang-levenshtein

An implementation of the Levenshtein algorithm in Go. Provides edit distances, edit scripts and ratios for strings (slices of runes).

Installation

$ go get github.com/texttheater/golang-levenshtein/levenshtein

Documentation

The documentation can be viewed online here: https://godoc.org/github.com/texttheater/golang-levenshtein/levenshtein

See also

For a package that is similar but more generic and provides more control, check out Daniël de Kok’s editdistance.