Skip to content

docs: document Unicode behavior - #16

Open
whitescreendev wants to merge 1 commit into
wooorm:mainfrom
whitescreendev:docs/unicode-behavior
Open

whitescreendev wants to merge 1 commit into
wooorm:mainfrom
whitescreendev:docs/unicode-behavior

Conversation

@whitescreendev

Copy link
Copy Markdown

This documentation update clarifies how the Levenshtein implementation handles Unicode text.

It documents that:

  • the implementation operates on Rust char values rather than UTF-8 bytes;
  • canonically equivalent strings can have different underlying scalar-value sequences;
  • Unicode normalization may be needed before comparison;
  • user-perceived characters can span multiple Unicode scalar values;
  • grapheme-cluster segmentation may be appropriate when one visible character should count as one edit.

The implementation and API are unchanged. This is a documentation-only update.

An additional technical reference is included for Unicode normalization, grapheme segmentation, and text transformations in edit-distance processing.

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