File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,20 @@ import (
14
14
type AlgorithMethod uint8
15
15
16
16
const (
17
- Levenshtein AlgorithMethod = iota
18
- DamerauLevenshtein AlgorithMethod = iota
17
+ // Levenshtein algo identifier
18
+ Levenshtein AlgorithMethod = iota
19
+ // DamerauLevenshtein algo identifier
20
+ DamerauLevenshtein AlgorithMethod = iota
21
+ // OSADamerauLevenshtein algo identifier
19
22
OSADamerauLevenshtein AlgorithMethod = iota
20
- Lcs AlgorithMethod = iota
21
- Hamming AlgorithMethod = iota
22
- Jaro AlgorithMethod = iota
23
- JaroWinkler AlgorithMethod = iota
23
+ // Lcs algo identifier
24
+ Lcs AlgorithMethod = iota
25
+ // Hamming algo identifier
26
+ Hamming AlgorithMethod = iota
27
+ // Jaro algo identifier
28
+ Jaro AlgorithMethod = iota
29
+ // JaroWinkler algo identifier
30
+ JaroWinkler AlgorithMethod = iota
24
31
)
25
32
26
33
// StringsSimilarity return a similarity index [0..1] between two strings based on given edit distance algorithm in parameter.
You can’t perform that action at this time.
0 commit comments