Documentation ¶
Overview ¶
Package editdist includes a Levenshtein automaton as well as a traditional implementation to calculate Levenshtein Distance. The code is based on an excellent levenshtein implementation at https://github.com/agnivade/levenshtein
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeDistance ¶
ComputeDistance computes the levenshtein distance between the two strings passed as arguments. The third argument is a flag that would trigger creation of tagged strings that show how exactly the two strings differ. If the diff artument is true, the tagged strings will be provided in the output.
func ComputeDistanceMax ¶
ComputeDistanceMax computes the levenshtein distance between the two strings passed as an argument. It stops execution if edit distance grows a certain max value. It returns edit distance and a boolean. The boolean is true when calculation was aborted by the `max` value.
Types ¶
This section is empty.