Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance between "abc", "abcde" is 2 but between "abcde", "abc" is 1 #24

Closed
BryanKoo opened this issue Jun 19, 2020 · 1 comment
Closed

Comments

@BryanKoo
Copy link

I appreciate that this implementation is a great help with array calculation !
I checked distances with simple strings.
I am afraid that I have strange distance calculation results.

damerau_levenshtein_distance('abcde', 'abc') = 1
damerau_levenshtein_distance('abc', 'abcde') = 2

@gfairchild
Copy link
Collaborator

Thanks for the report, @BryanKoo. I believe this is the same issue as #22. I'll try to get to this soon because it's definitely a bad bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants