Language Diversity, Typology, and Scripts › Why English-Centric Assumptions Fail in the First Place
Language AI HandbookAll chapters Start by distinguishing the evidence available during training from the transformations applied to text at inference.
Two mechanisms are at work.
Distribution mismatch. In a training table with 90 English examples and 10 Hausa examples, the two labeled groups contribute different numbers of observations. To check what this means for a particular model, compare held-out examples in each language and report their token counts.
Here the model's probability distribution is over tokens: for a sequence of tokens , it assigns
where:
- : the token at position in the sequence
- : the probability the model assigns to token given all preceding tokens
- : the product over all positions, so that the full sequence probability is the product of its per-token conditionals
The product gives the probability of this token sequence under the model. Compare predictions on held-out target-language text to see where an English-heavy corpus leaves gaps. A low sequence probability alone cannot establish grammaticality, and raw sequence probabilities also depend on how many tokens enter the product.
Pipeline mismatch. Test whether preprocessing preserves the distinctions the task uses. In the string กาก่า, removing the combining tone mark changes the codepoint sequence. A whitespace split also leaves this string in one span. Include cases like these in the regression suite. An English-only regression suite would leave this particular input untested.
Both mechanisms can operate in the same system. To investigate a failure, inspect the input after preprocessing and evaluate predictions on matched target-language examples. This helps distinguish a representation problem you can observe directly from an error the model makes on intact input.
Use the table to choose input probes for the assumptions you want to test.
| Assumption to check | Example input or setting | What to inspect |
|---|---|---|
| Whitespace usually marks word boundaries | English, Russian, and modern Greek orthographies | Chinese, Japanese, Thai, Lao, Khmer, Tibetan |
| 26 basic letters | Modern English alphabet | Many other Latin-script alphabets and other writing systems |
| Uppercase and lowercase | A, a, and ب | Compare the codepoints before and after lowercasing |
| Left-to-right flow | abc next to مرحبا | Compare stored order with display order using the Unicode Bidirectional Algorithm |
| Diacritics are optional | ế and e | Check which distinctions the task requires before removing marks |
| Whitespace grouping serves as word-level tokenization | 我爱你 and I love you | Compare whitespace spans with the tokenization convention chosen for the task |
| Visually identical text has identical codepoints | é and e with a combining acute | Compare encoded sequences before and after canonical normalization |
| SVO word order | English, French, Mandarin | Hindi, Japanese, Korean, Turkish (SOV); Irish (VSO); Warlpiri (no dominant order in WALS) |
Use these checks to build regression examples for the languages, input conventions, and operations the application supports.
A language and its written representation are different units. A script is a set of graphic signs. An orthography specifies how a language uses those signs. A script label constrains the repertoire you should inspect. Use additional evidence to identify the language of an input. Unicode Standard Annex #24
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!