Skip to content

docs: document Unicode behavior for Levenshtein - #77

Open
whitescreendev wants to merge 1 commit into
adrg:masterfrom
whitescreendev:docs/levenshtein-unicode
Open

whitescreendev wants to merge 1 commit into
adrg:masterfrom
whitescreendev:docs/levenshtein-unicode

Conversation

@whitescreendev

Copy link
Copy Markdown

Summary

Document the Unicode representation used by the Levenshtein implementation.

The implementation converts both input strings to []rune before computing the
distance, so valid UTF-8 input is compared as decoded Unicode code points rather
than raw UTF-8 bytes.

The documentation also clarifies that rune-based comparison does not imply
grapheme-cluster segmentation, and notes that case-insensitive preprocessing is
applied before conversion to rune sequences.

No implementation behavior is changed.

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.

1 participant