Skip to content

Use unicase for full Unicode case folding of custom words#274

Merged
blopker merged 1 commit into
mainfrom
feature/casefold
May 18, 2026
Merged

Use unicase for full Unicode case folding of custom words#274
blopker merged 1 commit into
mainfrom
feature/casefold

Conversation

@blopker
Copy link
Copy Markdown
Owner

@blopker blopker commented May 18, 2026

Replace per-lookup to_lowercase() with unicase::eq / UniCase for the custom word allowlist, flag words, and TextDictionary. This collapses pairs that Rust's default case mapping leaves distinct (ß <-> SS, Greek Σ/σ/ς), and lets stored words keep their original casing instead of being silently lowercased on insert.

Replace per-lookup to_lowercase() with unicase::eq / UniCase<String>
for the custom word allowlist, flag words, and TextDictionary. This
collapses pairs that Rust's default case mapping leaves distinct
(ß <-> SS, Greek Σ/σ/ς), and lets stored words keep their original
casing instead of being silently lowercased on insert.
@blopker blopker merged commit f96e6fd into main May 18, 2026
17 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.

1 participant