Clone this repo:

Branches

  1. eb6844b Bugfix: init values in matrix depend on cost by Kilian Evang · 11 months ago master
  2. b7aaf30 Added preconfigured Options allowing for Sub by Kilian Evang · 1 year, 3 months ago
  3. b87bf01 Added options to test cases by Kilian Evang · 1 year, 3 months ago
  4. d188e65 More extensive pointers by Kilian Evang · 2 years, 5 months ago
  5. dffc232 Added link to doc to README by Kilian Evang · 2 years, 5 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.