Code-Switching and Mixed-Language Text › Limitations and Impact
Language AI HandbookAll chapters Review mixed-language examples at the point where the system makes a decision. An English-only index can return an ordinary result for a bilingual query while missing the part that carries the request. In that case, check the language labels and the retrieval result together.
Document who supplied the data, how word and span boundaries were annotated, and how borrowings and uncertain cases were handled. Repeat the evaluation across the groups and writing styles the system is designed for. A corpus policy tells the reader what its labels mean, including cases where the text alone leaves the intended interpretation open.
Otheguy, García, and Reid (2015) describe translanguaging as drawing on a speaker's full repertoire and propose a unitary account of bilingual grammar. MacSwan (2017) also distinguishes a speaker's repertoire from named languages and proposes an internally diverse grammar. For an engineering task, define the token-label policy against the decision it serves. If those labels route queries to an index, measure whether users can find the intended documents as well as whether the model matches the annotations.
A test set made of formal paragraphs can miss the spellings and switching patterns in a customer's chat messages. Sample the settings you plan to support and report results by language combination, script, and task.
When you deploy a system for mixed-language text, build these checks into your workflow.
- Measure script composition and language at multiple granularities.
- Log LID scores alongside the chosen labels.
- Tag romanized text explicitly.
- Evaluate on naturally occurring code-switched text with switch-aware metrics.
- Check generated output for language drift.
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!