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

multibyte UTF-8 characters #6

Open
necroahegyrol opened this issue Oct 9, 2017 · 0 comments
Open

multibyte UTF-8 characters #6

necroahegyrol opened this issue Oct 9, 2017 · 0 comments

Comments

@necroahegyrol
Copy link

All algorithms are ranging over the bytes of strings, which leads to different results for multibyte and singlebyte UTF-8 characters.

Example using WagnerFischer(a, b, 1, 1, 1):

"szellemhaj" - "szellemhajo" distance is 1
"szellemhaj" - "szellemhajó" distance is 2

Ranging over runes of strings would result 1,1 distance.
It's is slower but more accurate for non-ascii characters.

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

1 participant