Language and Locale

8 patterns for this issue

Goal: Users are understood and answered in the language, reading level, and format that work for them.

Why this family exists

People write in the language, register, and format they live in. A reply in the wrong language, at the wrong reading level, or with a wrong name or pronoun costs trust, and in billing, legal, and medical text it can cost money or health. The guidance here is design guidance only. Have native speakers and, where laws apply, counsel review before launch. Written for chat; voice and web signals are planned.

How we measure it

Shared metrics the patterns below report against. Targets are starting points to tune on your own data, unless a source is given.

MetricTargetDefined in
Human-rated accuracy on critical stringsStart over 98%; unverified translations flaggedunchecked translation in high-stakes text (GitHub)
Native-rater appropriateness of registerStart over 90%politeness and formality errors (GitHub)
Reading grade of replies against a target bandSet per audience; unverified start of roughly grade 6-8 for general consumer contentreading-level mismatch (GitHub)
Pronoun-handling pass rate; unneeded gender inferencesUnneeded inferences: 0gender and pronoun errors (GitHub)
Intent accuracy on a noisy set vs. cleanStart: gap under 5 pointstypos, shorthand, and noisy input (GitHub)
Appropriate-handling rate; false profanity flagsStarting points on the pageprofanity and slang handling (GitHub)
Localization coverage of strings; mixed-language reply rateTarget: 100%; mixed-language replies under 1%mixed-language experience (GitHub)
RTL render-test pass rateTarget: 100%right-to-left and mixed-script rendering (GitHub)

Patterns

PatternOne line
Unchecked translation in high-stakes text (GitHub)Machine-translated billing, legal, or medical text goes out with no check and no label
Politeness and formality errors (GitHub)Wrong formal or informal register in languages that mark it
Reading-level mismatch (GitHub)Replies are too dense, or talk down
Gender and pronoun errors (GitHub)The bot guesses gender or ignores stated pronouns
Typos, shorthand, and noisy input (GitHub)Misspellings and texting shorthand break understanding, or the bot asks for a retype
Profanity and slang handling (GitHub)The bot warns over mild swearing, or swears back
Mixed-language experience (GitHub)Part of a reply is in the user’s language and part is not
Right-to-left and mixed-script rendering (GitHub)Arabic and Hebrew replies show with the wrong direction and scrambled numbers

Covered in other pages

Emoji and punctuation tone (“k.”, ”…”): see the example in sarcasm misread as satisfaction (GitHub).

Short chat examples were added to existing pages: wrong-language reply and language switch (language barrier failures (GitHub)), jargon (response adaptation failure (GitHub)), locale formats (input locale mismatch (GitHub)), names (name recognition failures (GitHub)), and dialect (accent dialect bias (GitHub)).

Planned (not yet written)

See the language and locale catalog (GitHub) for the rest.