-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I noticed that these 2 Go libraries differ in results for the same input:
(stringdist.TrueDamerauLevenshtein).Calculate(4XHYWD, YLKTW9) = 6
tdl.Distance(4XHYWD, YLKTW9) = 5
Looking at the Perl implementation Text::Levenshtein::Damerau, both implementations (pure perl and XS) return 5:
% perl -MText::Levenshtein::Damerau -E 'say Text::Levenshtein::Damerau::edistance("4XHYWD", "YLKTW9")'
5
…hence, I think the issue lies within your implementation. Could you take a look please?
PS: the edge case where s == t does not return 0 in your implementation either. Not sure if it’s the same bug or a separate issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels