Test AI masking when family-name order varies by language
Use fixtures with names in the orders and scripts your customers use. Avoid assuming that the first whitespace-separated token is always a given name.
Example
The same synthetic customer appears in one structured field with family name first and another with a localized display name.
What to do
- Create fictional examples with different scripts, compound names and family-name positions.
- Test structured name fields and free-text mentions separately.
- Verify that the model sees the intended placeholder and still distinguishes separate customers.
How to verify
Both accepted renderings of the person are masked and unrelated neighboring words remain intact.
Limits
A name by itself does not reliably identify nationality or locale. Use relevant format context supplied by the source.