Code-Switching and Mixed-Language Text › Limitations and Impact

Michael BrenndoerferNovember 26, 20262 min read
Language AI HandbookAll chapters
Part 26 of 67Multilingual Language Models and Cross-Lingual Transfer
Chapter 188Code-Switching and Mixed-Language Text › Limitations and Impact
Reading section 11 of 13 · Limitations and Impact · 2 minSection 11 of 13 · 2 min

Section 11 of 13 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

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!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy