name-variants
Multilingual name romanization lookup tables for Rust — Chinese, Japanese, Korean, Arabic, Vietnamese, Indian, Persian, Hebrew, Thai, Greek, Turkish, Russian, Indonesian/Malay.
Maps romanization variants to their canonical native-script key so that
Chen, Chan, and Tan all resolve to 陈.
Usage
use lookup_key;
assert_eq!;
assert_eq!; // case-insensitive
assert_eq!;
assert_eq!;
assert_eq!;
// Multi-word: first matching token wins
assert_eq!;
Install
[]
= "0.1"
Design
- Canonical key is always the native script form —
陈,박,محمد - Zero runtime dependencies — all data in a compile-time perfect hash map (
phf) - Case-insensitive — input is lowercased before lookup
Nonefor unknowns — explicit signal to fall back to fuzzy matching