|author||Kilian Evang <firstname.lastname@example.org>||Wed Jul 17 06:06:38 2019|
|committer||Kilian Evang <email@example.com>||Wed Jul 17 06:06:38 2019|
Added preconfigured Options allowing for Sub DefaultOptions has substitution cost 2, for historical reasons. Added DefaultOptionsWithSub to give the more common behavior with substitution cost 1. Also extracted the default match function for convenience and added two test cases. Fixes #11.
An implementation of the Levenshtein algorithm in Go. Provides edit distances, edit scripts and ratios for strings (slices of runes).
$ go get github.com/texttheater/golang-levenshtein/levenshtein
The documentation can be viewed online here: https://godoc.org/github.com/texttheater/golang-levenshtein/levenshtein
For a package that is similar but more generic and provides more control, check out Daniël de Kok’s editdistance.