Skip to content

Conversation

@pankaj-bind
Copy link
Contributor

fix issue #48

@jordanmontt
Copy link
Member

One question

Unicode Characters: The test suite does not include a test to verify the Levenshtein Distance calculation for strings containing Unicode characters (e.g., "café" to "caffè").

so for you the distance here should be 2 or 3 ? and why?

@pankaj-bind
Copy link
Contributor Author

Hey, the Levenshtein Distance for "café" to "caffè" is 2. You just swap "é" for "f" and add "è" at the end. That’s the shortest way to do it, and Pharo handles Unicode characters like single letters, so it’s all good!

@jordanmontt
Copy link
Member

Great

@jordanmontt jordanmontt merged commit 8a84c9b into pharo-ai:master May 5, 2025
1 of 6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants