Elamur Research

What Code-Switching Strategies are Effective in Dialog Systems?

Paper · 2020 · Emily Ahn, Cecilia Jimenez, Yulia Tsvetkov et al.

Summary

A bilingual conversation involves more than choosing which language to use. Speakers can keep the grammar of one language while borrowing words from another, change languages at a clause boundary, or use a brief conversational marker to make an exchange feel less formal. Ahn and colleagues ask how these choices affect people interacting with dialogue systems. Their central question is practical: if an agent can communicate in Spanish and English, which ways of combining those languages encourage users to respond naturally, accommodate the agent’s style, and complete a shared task?

The authors investigate this through a controlled text-chat setting. A person and an agent each receive a private list of friends, and they must discover which friend appears on both lists. The agent follows a fixed language strategy throughout a conversation. Some versions preserve English grammar and insert Spanish words; others preserve Spanish grammar and insert English words. Another family changes languages between larger stretches of a sentence. Each strategy also has an informal variant containing conversational markers. Monolingual agents and an agent that switches at random provide comparison conditions. The resulting COMMONAMIGOS collection contains 587 usable conversations, together with participant surveys.

The study finds substantial voluntary mixing: 70% of conversations include a code-switched contribution from the user, although switching is not a task requirement. Users also show accommodation to the agent’s particular switching strategy. The distribution of their strategies changes with the condition, and the matching categories are significantly more frequent than under the random-switching comparison. However, accommodation is not equivalent to successful collaboration. The authors do not find significant relationships between accommodation and their success measures, and their conclusion states that switching strategy does not significantly affect task success. Differences in the descriptive results therefore suggest possible design choices without establishing a universally superior strategy.

Participant characteristics help explain the variation. People reporting strong proficiency in both languages use clause-based switching more often, whereas speakers dominant in one language more often insert material into that language’s grammatical framework. Adding informal markers also produces different patterns across the reported gender groups. These observations support the authors’ broader recommendation that bilingual agents should attend to the user rather than impose a single fixed style. They also require caution: proficiency is self-reported, the participants come from a particular crowdsourcing population, and the agents never adapt their strategy during a conversation.

The contribution is consequently both a resource and an experimental framework. COMMONAMIGOS makes it possible to study written switching across conversational turns, while the controlled agent separates different ways of mixing languages. The paper also supplies an interpretable procedure for classifying utterances by switching strategy. Its findings support treating bilingual interaction as a matter of structure, audience, and conversational context, rather than merely counting how many words belong to each language. They establish useful patterns in this setting, while leaving adaptive interaction, broader populations, other language pairs, and more open-ended conversation for future investigation.

Interesting ideas

Separate the behavior into meaningful strategies. A broad category such as multilingual output can hide distinct structures. Inserting a noun into an otherwise stable grammatical frame differs from changing languages between clauses. Defining these strategies makes both generation and analysis more informative. The same principle applies whenever a system’s apparent behavior can arise through different mechanisms: distinguish the mechanisms before comparing their effects.

Control one side of an interaction. The agent keeps its assigned strategy while the human participant responds freely. This creates a useful compromise between a tightly scripted experiment and an uncontrolled conversation. It lets the authors ask whether changes in user behavior follow changes in the agent. Similar designs can examine politeness, explanation style, technical vocabulary, or the presentation of uncertainty while preserving an actual collaborative task.

Measure quantity and organization separately. Balanced use of two languages does not specify where switching happens. Frequent switching does not identify whether a speaker inserts isolated words or alternates larger units. The paper therefore combines quantity measures with structural labels. This is reusable in evaluations where the amount of a behavior and its internal arrangement answer different questions, including repetition, dialogue repair, and the use of specialist terminology.

Distinguish accommodation from achievement. Users may imitate an agent without becoming more successful or more satisfied. The study measures strategy matching, completion of the shared task, and reported experience separately. That separation prevents an attractive intermediate result from becoming an unsupported claim about usefulness. It is valuable whenever a system aims to influence user behavior: the intended behavioral change needs its own validation against the actual goal.

Validate an interpretable classifier against human judgments. The strategy detector consists of explicit conditions involving language spans, word classes, and token balance. The authors compare its labels with a linguistically adjudicated sample and also report another annotator’s agreement. This makes the detector’s categories and limitations visible. A similar approach can help evaluate rule-based annotation, corpus filters, or linguistic diagnostics whose outputs later support statistical conclusions.

Treat the interface as part of the experiment. Spanish instructions and bilingual friend tables help establish the setting, but they may also influence what participants regard as the default language. The authors consider this when interpreting the amount of Spanish in user responses. Any evaluation involving language choice, formality, or audience assumptions should examine the framing around the interaction, instead of treating the conversational turns as the entire experimental environment.

Examine variation before choosing a default. Aggregate behavior does not describe every user equally well. The proficiency analysis shows why a strategy that suits a balanced bilingual may differ from one that suits a speaker dominant in a particular language. The reusable lesson is to inspect relevant variation before proposing personalization, then test whether adaptation actually helps. A descriptive subgroup pattern is a reason to investigate a choice, not sufficient evidence to automate it.

Deep dive: What Code-Switching Strategies are Effective in Dialog Systems?

How Spanish–English code-switching strategies shape bilingual text dialogue, user accommodation, task success, and conversational experience. · about 38 minutes to read

How Mova uses it

Mova is a small, transparent language system written in Rust. Its established language core turns text into dependency structures, frames, and a representation of the described world. The connections below concern possible uses of this paper’s experimental and linguistic ideas. They do not establish that Mova has implemented Spanish–English dialogue, measured conversational accommodation, or applied this paper directly. Each status mark is a proposal against the documented mechanisms; the effect of transferring an idea remains unknown until evaluated.

Idea: Represent switching strategies explicitly. Where: Code-Switching Strategies. Area: syntax and multilingual interaction. Mova: частково є (native dependency structures in en, frames in prag). A future bilingual extension could represent insertion into a grammatical frame separately from alternation between larger units. The existing structures provide a place to express such distinctions, but the documented core does not establish Spanish–English strategy recognition. Why Mova: explicit strategy types would fit its preference for inspectable rules and would avoid treating every mixed sentence as the same phenomenon.

Idea: Separate the conversational decision from its surface language. Where: Bilingual Collaborative Human–Computer Dialogue System; Figure 2. Area: architecture. Mova: частково є (linguistic, combinatorial, and operational boundaries in docs/hybrid-system.md). The paper preserves an underlying task process while changing how its utterances appear. Mova could similarly keep a supported action or question distinct from a future multilingual rendering. Why Mova: this would allow language presentation to vary while preserving a reviewable account of the admitted task.

Idea: Preserve the original utterance through normalization. Where: Bilingual Collaborative Human–Computer Dialogue System; Figure 2. Area: data processing. Mova: частково є (source-bound observations and explicit capability interfaces in docs/hybrid-system.md). The paper’s agent receives an English translation of the user’s contribution. A Mova adaptation could retain the mixed original alongside any normalized interpretation and record which transformations produced it. Why Mova: a task interpretation should remain traceable to the user’s actual wording, especially when translation may change entities or relations.

Idea: Use a collaborative task with an externally checkable outcome. Where: Bilingual Collaborative Human–Computer Dialogue System. Area: evaluation. Mova: частково є (world maintains entities and state; configured workers retain action results). A small shared-information task could test whether changes in wording preserve successful reference and question answering. The paper’s friend-matching scenario offers a concrete experimental pattern, rather than evidence about Mova’s current dialogue competence. Why Mova: a checkable target would connect linguistic behavior to task performance.

Idea: Keep the agent’s behavior fixed during an initial experiment. Where: Code-Switching Strategies; Data Collection. Area: experimental design. Mova: частково є (deterministic execution and bounded configured capabilities). Before trying adaptive language presentation, Mova could compare fixed policies while recording user responses. The existing commitment to determinism supports reproducible conditions, but a corresponding bilingual interaction study is unknown. Why Mova: stable conditions would make it easier to identify which policy produced a change.

Idea: Include monolingual comparisons. Where: Crowdsourcing; Table 4. Area: evaluation. Mova: частково є (negative controls in school assessment and benchmark procedures). A future mixed-language reader should be compared with equivalent inputs confined to each supported language. Existing assessment controls do not establish this particular comparison. Why Mova: otherwise, additional complexity could be mistaken for a benefit when a simpler language choice works equally well.

Idea: Include an unstructured switching comparison. Where: Crowdsourcing; Agent strategy can affect user strategy. Area: controls. Mova: частково є (negative-control principles in assessment and regression gates). The paper’s random condition helps distinguish structured strategy matching from a general tendency to mix languages. Mova could borrow that control logic without treating random multilingual text as a realistic conversational partner. Why Mova: it would test whether any benefit depends on the proposed linguistic organization.

Idea: Measure language balance separately from switching frequency. Where: Our bilingual dialogue system elicits code-switching. Area: statistics. Mova: нове, provisionally; a corresponding bilingual metric pair is not established by the digest. A future analysis could report both the distribution of language tokens and the frequency of transitions. Why Mova: these measurements would separate a document containing substantial material in each language from one that changes language repeatedly within short spans.

Idea: Report structural categories alongside aggregate indices. Where: Detecting Insertional and Alternational Code-Switching; Analysis. Area: evaluation. Mova: частково є (typed linguistic outputs in en and prag, field-specific evaluation in prag/src/eval.rs). Scalar scores could be accompanied by counts of interpretable switching structures. The proposed categories would require their own implementation and validation. Why Mova: an overall score becomes more useful when an engineer can inspect which kinds of construction changed.

Idea: Make category precedence explicit. Where: Detecting Insertional and Alternational Code-Switching. Area: rule design. Mova: вже є (ordered rules in French repairs and the evidence-based treeagree procedure). The paper tests alternation before insertion, making classification order part of the method. Mova can apply the same discipline when adding overlapping linguistic rules: document the first applicable category and test competing analyses. Why Mova: rule order can change an output even when the individual conditions appear reasonable.

Idea: Keep a residual category. Where: Detecting Insertional and Alternational Code-Switching; Table 1. Area: annotation. Mova: вже є (gaps in the language core and explicit failures such as missing_context in the deputy planner). A future switching detector could preserve cases outside its supported definitions rather than assign the nearest familiar label. Why Mova: a visible unresolved case is more informative than a confident label unsupported by the rule’s evidence.

Idea: Ground rules in grammatical evidence. Where: Detecting Insertional and Alternational Code-Switching. Area: syntax. Mova: частково є (en provides tags and dependency structures; French overrides use closed lexical and morphological evidence). The paper uses finite verbs, auxiliaries, function words, and content words to constrain its categories. Mova could investigate analogous conditions once the relevant languages and tagging quality are supported. Why Mova: grammatical evidence can make a rule more specific than a token-language majority alone.

Idea: Validate automatic labels against adjudicated judgments. Where: Detecting Insertional and Alternational Code-Switching. Area: annotation and evaluation. Mova: частково є (treeagree validates edits and sends reviewed disagreements through a separate teacher path). A switching annotation study could retain independent judgments, adjudication, and automatic predictions as distinct records. Why Mova: downstream statistics depend on label quality, and agreement among automatic components does not by itself establish correctness.

Idea: Measure human disagreement as well as automatic error. Where: Detecting Insertional and Alternational Code-Switching. Area: statistics. Mova: частково є (treeagree reports chance-corrected agreement and sentence-resampled intervals). The paper’s additional annotator comparison provides context for the difficulty of the labels. Mova could use a similar comparison when evaluating a new linguistic distinction. Why Mova: it would help distinguish unclear category definitions from errors specific to the implementation.

Idea: Check categories in independent corpora. Where: Code-Switching Strategies; Table 1. Area: corpus analysis. Mova: частково є (tools/sources records provenance; tools/dictindex separates source strata and retains source credit). Before relying on categories induced by a particular task, Mova could examine whether they occur in independently sourced conversation or text. Why Mova: a useful task-specific rule should not silently become a claim about all language use.

Idea: Treat task framing as a recorded condition. Where: Crowdsourcing; Our bilingual dialogue system elicits code-switching. Area: evaluation design. Mova: частково є (source/configuration identity in bounded workflows and source fingerprints in mova-enrich). Instructions, displayed vocabulary, and the assumed default language could accompany interaction results as explicit metadata. Why Mova: those choices can shape responses before the reader or agent processes its first conversational turn.

Idea: Separate accommodation from successful reasoning. Where: Agent strategy can affect user strategy; Users succeed in their dialogues. Area: evaluation. Mova: частково є (distinct observations, checks, and outcomes in the hybrid-system contract). A user copying Mova’s phrasing would be evidence of behavioral influence, while correct task completion would require a separate check. Why Mova: an intermediate behavioral effect should not become a substitute for successful understanding or execution.

Idea: Keep user experience distinct from task completion. Where: Users succeed in their dialogues. Area: human evaluation. Mova: нове, provisionally; a corresponding conversational survey procedure is not established by the digest. Future interaction studies could measure perceived clarity and willingness to continue alongside a checkable result. Why Mova: a technically correct interaction may still be difficult to use, while a pleasant exchange may fail its purpose.

Idea: Analyze lexical repetition separately from structural matching. Where: Collected Dialogues; Table 3. Area: pragmatics and discourse. Mova: частково є (lemmas in en, event roles in prag, entities in world). The paper’s examples show users matching a switching arrangement while choosing the other language’s word for an attribute. Mova could compare repeated lexical items with preserved relations and structures. Why Mova: shared vocabulary and shared conversational organization are different kinds of alignment.

Idea: Test discourse markers as a bounded intervention. Where: Code-Switching Strategies; Our bilingual dialogue system elicits code-switching. Area: pragmatics. Mova: частково є (prag reads speech acts and other pragmatic signals). A future generator could vary a closed set of conversational markers while keeping the task content stable. The paper’s observed effects do not establish equivalent effects in Mova. Why Mova: a small, inspectable intervention could test whether presentation changes interaction without altering the intended question.

Idea: Evaluate each marker policy within its strategy. Where: Our bilingual dialogue system elicits code-switching; Table 4. Area: experimental interactions. Mova: частково є (held-out comparisons and regression-gated changes). The paper finds that the same informal treatment accompanies different movements in the balance measure across strategy families. Mova should therefore evaluate a presentation change in each relevant setting. Why Mova: an average benefit can conceal a policy that helps one configuration and harms another.

Idea: Use expressed proficiency to investigate adaptation. Where: User demographics affect CS—Language Proficiency. Area: user adaptation. Mova: нове, provisionally; bilingual proficiency-based dialogue policies are not established by the digest. A future study could compare user-selected language preferences with observed difficulty before testing adaptation. Why Mova: the paper suggests that a user’s ability in each language matters more than a single population-wide style.

Idea: Examine subgroup effects without turning them into fixed identities. Where: User demographics affect CS—Gender. Area: evaluation and bias. Mova: частково є (controlled coreference-bias comparisons in coref; explicit evidence requirements elsewhere). The paper’s gender patterns could motivate checking whether an aggregate interaction result hides opposite responses. They do not justify automatically selecting a conversational style from gender. Why Mova: subgroup analysis can reveal uneven effects while direct user behavior remains a more specific basis for a proposed adaptation.

Idea: Keep participant identity distinct from conversation count. Where: Collected Dialogues. Area: statistics and data processing. Mova: частково є (stable document and posting identities in tools/dictindex, provenance-aware records). The paper reports both conversations and unique workers. An interaction study could preserve this distinction and account for repeated contributions when estimating uncertainty. Why Mova: several records from the same person need not provide independent evidence about a wider population.

Idea: Define sequence boundaries before computing transition statistics. Where: Our bilingual dialogue system elicits code-switching, note on I-idx. Area: statistical specification. Mova: частково є (explicit record units and sentence-based resampling in corpus tooling). The paper joins a participant’s turns before counting language transitions. Mova could make comparable boundary decisions part of the metric definition. Why Mova: a score can change when turns are joined, even though the underlying text remains unchanged.

Idea: Release interpretation context with interaction data. Where: Introduction; Collected Dialogues; Users succeed in their dialogues. Area: data provenance. Mova: частково є (tools/sources manifests and the source-credit structure in tools/dictindex). Strategy assignments, task conditions, and survey definitions could accompany any future conversational corpus. Why Mova: text alone would not reveal what the agent was instructed to do or which outcome a response supports.

Idea: Keep collected interaction separate from admitted learning material. Where: COMMONAMIGOS contribution; Conclusion. Area: training admission. Mova: вже є (mova-enrich stages drafts separately from admission; reviewed supervision remains separate from assessment). The paper makes its conversations available for further development, but an analogous Mova collection should retain the distinction between observed behavior and validated teaching material. Why Mova: authentic user language can contain misunderstandings, unresolved references, and task failures.

Idea: Test dynamic adaptation only after validating fixed policies. Where: Conclusion. Area: operational planning. Mova: частково є (bounded capabilities and explicit nested-call outcomes in docs/hybrid-system.md). The authors propose changing strategies within a conversation as future work. Mova could eventually treat such a change as an explicit policy action with a recorded trigger and measurable outcome. Why Mova: transparent adaptation would make it possible to inspect why a style changed and whether the change helped.

The problem and its context

Language choice is also interaction design

The paper starts from a familiar feature of human communication: people adjust how they speak to the person they are addressing. That adjustment can involve vocabulary, tone, gesture, or language choice. When speakers share more than one language, an exchange need not stay inside the boundaries of either language throughout. Code-switching names this movement between languages, including movement within an utterance.

For an agent, supporting that behavior creates a different problem from merely offering separate Spanish and English interfaces. A user might use Spanish grammar while inserting an English noun. Another might begin a sentence in English and finish a clause in Spanish. Both contributions are bilingual, but their organization differs. An agent that only chooses a single output language misses this distinction, while one that mixes words without structure may fail to resemble a plausible conversational partner.

The authors describe existing dialogue technology as insufficiently sensitive to the individual user. Its output tends to follow the language and style of its development data. Their proposed alternative is a user-oriented bilingual interaction in which the agent’s language behavior can eventually respond to the person. The study does not implement that full adaptation. It first asks what happens when a person encounters several controlled versions of a bilingual agent.

That ordering matters. Before an agent can adapt usefully, researchers need to know what its possible strategies are and how people respond to them. Simply collecting mixed-language messages would not reveal whether a user’s behavior arose independently, reflected the agent’s wording, or resulted from the task’s framing. The paper therefore makes control over the agent a central part of the research design.

Why written conversation needs its own evidence

The authors distinguish their setting from earlier work on spoken bilingual interaction. They discuss speech corpora and studies of spontaneous conversation, but argue that those settings do not transfer directly to writing. Spoken interaction also makes it difficult to control one participant’s behavior while observing the other.

They contrast this with controlled work in psycholinguistics. Such experiments can isolate particular influences on switching, but the paper describes them as commonly involving carefully arranged tasks and limited participant groups. Their own aim is to gather conversational data through an online system while retaining some experimental control.

Written social media provides another source of bilingual material. The paper refers to research on Twitter and Reddit, including the Twitter material associated with the Second Shared Task on Language Identification in Code-Switched Data. However, its stated concern is that much analysis focuses on individual sentences or broadcast-style contributions. A conversation adds an immediately preceding partner whose language choices may influence the next response.

The missing context is therefore interactional. A mixed sentence can be analyzed for its words and structure, yet still leave unanswered why its author chose that arrangement at that moment. Did the preceding turn use a similar pattern? Did the speaker prefer that pattern regardless of the partner? Did the task make a particular language easier to use? By collecting exchanges with controlled agents, the study creates a way to investigate these questions together.

The linguistic distinctions behind the experiment

The paper draws its main contrast from Muysken’s account of bilingual speech. Insertional switching assumes a grammatical framework belonging mainly to one language. This framework is called the matrix language. Material from the embedded language appears within it, commonly as a word or phrase.

The important distinction is between grammatical organization and the language of every lexical item. In the authors’ implementation, an English sentence can retain its English structure while selected nouns appear in Spanish. Conversely, a Spanish grammatical frame can contain English nouns. These are different directions of insertion, even though both combine the same languages.

Alternational switching involves larger stretches that retain more of their separate linguistic organization. The paper associates it with constituent boundaries and changes between clauses, topics, or sentences. Here the agent can begin with English and continue with Spanish, or begin with Spanish and continue with English.

The background literature gives the authors a reason to compare these patterns across proficiency groups. They describe earlier findings associating insertion with unequal proficiency and alternation with more balanced bilingual ability. The present study tests whether its conversational data exhibit a related pattern. It does not derive individual competence from a switching label.

Formality adds another dimension. The authors suggest that casual interaction and rapport may encourage switching. They operationalize an informal style by adding discourse markers: short conversational expressions that help organize an exchange without carrying its main task content. Their background discussion treats Spanish markers in English speech as potentially relevant to informality and social identity. The experiment tests the consequences of this particular implementation rather than all possible meanings of casual speech.

The surrounding computational work

The paper places its contribution alongside several kinds of bilingual language processing. It mentions tagging, language identification, speech recognition, and synthesis, as well as named entity recognition. The cited Aguilar and colleagues shared-task overview represents the latter area. These tasks address important components, but they do not by themselves explain a user’s response to an agent’s conversational style.

The discussion also includes Learning to Predict Code-Switching Points, whose relevance is that switching depends on more than local word choice. As the authors describe it, topic and interpersonal rapport can influence the style of switching. Their experiment brings that broader concern into a controlled human–computer exchange.

Another neighboring direction creates artificial mixed-language data. The paper cites Pratapa and colleagues’ linguistically guided synthetic-data work as an example. COMMONAMIGOS serves a different immediate purpose: it records how people actually respond to deliberately varied agent behavior. The distinction is between constructing bilingual material and observing an interaction that produces it.

The closest earlier conversational system described by the authors used fixed bilingual prompts to encourage users to respond bilingually. Ahn and colleagues retain the elicitation goal but move beyond a restricted prompt inventory. Their collaborative agent can conduct a task-oriented exchange while keeping its switching strategy controlled.

The method, step by step

Build a task that requires collaboration

The underlying task comes from an existing collaborative dialogue framework. Each participant sees a private table describing friends and their attributes. The tables overlap in a single friend, and the conversational goal is to identify that shared person.

This structure gives the interaction a reason to continue. Neither participant can inspect the other’s complete table, so they must exchange information. A question about a hobby, occupation, or field of study can help narrow the possibilities. A response can confirm an attribute, reject it, or introduce another candidate.

For each chat, the user sees 10 friends, each described through 3 attributes. The attributes are selected randomly and vary in complexity. The interface displays the relevant information in both languages. That makes the task usable without requiring participants to translate every attribute themselves, although it also means that the displayed bilingual vocabulary forms part of the interaction setting.

Participants are allowed no more than 8 minutes to finish the task. The time limit makes completion an observable outcome under a common constraint. It does not turn every unsuccessful exchange into evidence of a language problem: difficulties could also arise from reference, task interpretation, or the information exchanged.

Keep the task engine and change the language realization

The agent’s underlying rule-based process produces an English utterance. A machine translation service then supplies a Spanish version. The implementation uses Google Translate API, which the authors describe as providing reliable translations for their purpose.

With English and Spanish versions available, rules and templates produce the assigned bilingual form. This is the central intervention. The conversational process determines what the agent needs to say; the language-generation stage determines how the relevant content appears under a particular strategy.

Incoming user text follows a complementary path. It is translated into English before the underlying system extracts basic entities and determines the next turn. This allows a monolingual task engine to participate in bilingual interaction. It also places a transformation between the user’s original contribution and the task interpretation.

Controlled bilingual task dialogue

The steps in order.

Controlled bilingual task dialogueStep 1: Assign an agent language strategy1. Assign an agent language strategyStep 2: Display bilingual private friend information2. Display bilingual private friend informationStep 3: Generate the next English task utterance3. Generate the next English task utteranceStep 4: Translate it into Spanish4. Translate it into SpanishStep 5: Apply the assigned switching rules5. Apply the assigned switching rulesStep 6: Receive and translate the user response6. Receive and translate the user responseStep 7: Interpret entities and continue the task7. Interpret entities and continue the task

The diagram describes the recurring conversation process, not a learning pipeline. The paper does not report training the agent to discover its switching policy. Its policies are deliberately specified so that their effects can be compared.

Generate the main switching strategies

For insertional generation, the agent keeps the grammar of one language and inserts nouns from the other. An English grammatical frame with Spanish insertions therefore differs from a Spanish frame with English insertions. Direction here identifies which language supplies the inserted material and which supplies the surrounding structure.

For alternational generation, the agent uses a phrase in one language and then continues in the other. The authors implement both starting directions. The purpose is to produce larger language-specific stretches rather than isolated lexical substitutions.

These distinctions are best understood through the kinds of changes they permit. A noun referring to a field of study can change languages while the rest of a question retains its frame. Alternatively, an entire clause describing that field of study can appear in the other language. The content may remain comparable, but the placement and extent of switching differ.

The informal treatment can accompany any of the main strategies. It adds discourse markers rather than replacing the strategy’s underlying organization. Thus an insertional utterance remains insertional after a conversational marker is added, while an alternational utterance retains its larger switch.

The agent follows its assigned condition throughout the conversation. It does not inspect the user’s emerging preference and change strategy in response. This fixed behavior supports the experimental comparison, while also separating the study from the adaptive agents proposed in the conclusion.

Add the comparison conditions

The main design contains 8 switching conditions when formal and informal variants are included. The authors add Spanish-only and English-only agents to establish monolingual comparisons.

They also include a random-switching condition. In that condition, each smallest word unit has a 50% chance of being a switch location. Its purpose is to provide a comparison without the deliberate insertional or alternational organization of the main conditions.

The random agent is especially important for analyzing accommodation. Users may favor some strategies even when the partner has no coherent strategy. Comparing a controlled condition against that background helps separate an existing user preference from a response associated with the agent.

The authors describe the random condition as an intended approximation to an unconditioned distribution. It remains an interaction with a particular agent, however. Random switching is itself visible behavior and may influence the user. The comparison is useful without being equivalent to observing people in the absence of any intervention.

Define the strategy classifier

The authors need to classify user utterances, not merely label the agent conditions. Their procedure uses language spans and grammatical categories to assign alternational, insertional, or residual labels.

Alternation is tested first. An utterance must contain a continuous stretch of 2+ words in one language followed by a continuous stretch of 2+ words in the other. Each language must also contribute at least 1 finite verb or auxiliary. A finite verb is a conjugated verb form; an auxiliary is a supporting verbal item.

These requirements attempt to distinguish a substantial change of linguistic stretch from a brief borrowed item. The finite-verb condition makes the category narrower than any sequence containing several words from both languages. Detecting verbs and auxiliaries relies on part-of-speech tagging produced with spaCy.

If an utterance does not satisfy alternation, the procedure checks insertion. The proposed matrix language must supply at least one function word or finite verb. The embedded language must contribute a content word classified as a noun or adjective. The matrix language must also have more tokens than the embedded language.

The token comparison acts as a practical indicator of the dominant frame. The grammatical requirement adds evidence that the proposed matrix language supplies more than a bare lexical majority. Together, the conditions approximate the linguistic distinction in a form that can be applied consistently to the corpus.

Utterances that satisfy neither definition receive the residual label. This is a substantive part of the method. The categories are operational tests with limited coverage, rather than an assertion that every bilingual utterance belongs naturally to one of the main strategies.

Validate the labels before analyzing interaction

The authors construct a gold sample of 150 mixed utterances. It contains 50 utterances from each of Miami, Twitter, and COMMONAMIGOS. Two linguists proficient in both languages annotate the strategy jointly.

A further linguist is compared with that adjudicated set. The reported Cohen’s κ is 0.75, and the corresponding F1 is 0.8. The automatic procedure obtains F1 of 0.76 on the same sample.

This validation serves a different purpose from the dialogue experiment. It assesses whether the labels used to describe user behavior correspond reasonably well to expert judgments. It does not evaluate whether any conversational strategy is effective.

The paper gives procedural conditions rather than displayed mathematical equations for classification. It likewise explains its language-balance and transition measures verbally. There is therefore no explicit equation to reproduce. Supplying an algebraic definition beyond what the authors state would add methodological detail that the article does not establish.

Recruit participants and collect contextual information

The task is deployed through Amazon Mechanical Turk and Figure Eight. Workers are restricted to the US, a choice the authors explain as an attempt to limit cultural variation within Spanish–English switching.

The introduction and instructions are written in Spanish. The authors intend this to establish a bilingual setting where English might otherwise be assumed by default. Participants also answer ungraded Spanish proficiency questions.

The paper reports that 92% of users achieve 67%+ accuracy on the 3 questions. This is a recruitment-context indicator rather than a comprehensive measure of bilingual proficiency. The later proficiency analysis relies primarily on self-reported language ability.

Surveys accompany the conversations. They supply demographic information and ratings of the task and partner. The authors retain conversations with the required text and survey material, producing the analysis collection.

Measure different aspects of the exchange

The Multilingual-index, abbreviated M-idx, measures balance between languages. The paper describes 0 as entirely monolingual and 1 as equal token quantities in the languages. A higher score therefore means more balanced use, rather than necessarily more frequent alternation.

The Integration-index, or I-idx, measures the likelihood of a language change between tokens. Its endpoints run from 0 for monolingual material to 1 for a sequence that switches at every word.

For I-idx, the authors concatenate all turns from the same participant within a dialogue. A transition can therefore occur between that participant’s separate utterances. This detail matters because the measure is not restricted to switching inside individual sentences or turns.

The structural classifier answers another question: which arrangement does a mixed utterance exhibit? Accommodation is assessed by comparing those user labels across agent conditions. Task completion and self-reported experience then provide separate outcome measures.

Experiments and results

What COMMONAMIGOS contains

The collection begins with 737 conversations. After excluding chats missing text or survey information, the authors analyze 587. These usable chats come from 296 unique workers, since some participants complete more than one task.

The survey describes a participant group with a mean age of 31. The reported proportion of male participants is 60%, and USA, Venezuela, and Mexico are the countries of origin named most often. These details locate the population rather than establish representativeness.

Across the corpus, users produce an average of 7.9 utterances per conversation. Their average contribution contains 6.2 tokens per utterance. The reported vocabulary sizes are 571 for English and 846 for Spanish.

The distribution of user utterances includes 16% English-only, 44% Spanish-only, and 39% code-switched material. At the conversation level, 70% include user switching. The overall extrinsic task-success rate is 64%.

These figures establish that the setting elicits substantial bilingual behavior without requiring it. They do not show that the same users would switch at the same rate in another interface. Spanish instructions, bilingual tables, the agent’s behavior, and the collaborative task all contribute to the environment in which the observations arise.

How well the automatic strategy labels agree

The classifier’s validation provides a useful scale for interpreting the subsequent analysis. Its F1 of 0.76 is reported against the adjudicated multilingual sample, while the additional linguist reaches F1 of 0.8.

Strategy labeling on the adjudicated mixed-corpus sample, F1

The automatic procedure approaches the additional linguist’s agreement but retains classification error.

Strategy labeling on the adjudicated mixed-corpus sample, F1Additional linguist: 0.8Additional linguist0.8Automatic strategy classifier (this paper): 0.76Automatic strategy classifier (thispaper)0.76
The numbers
System or settingF1
Additional linguist0.8
Automatic strategy classifier (this paper)0.76

The comparison does not make expert judgment interchangeable with the detector. It shows that the operational categories are usable while remaining imperfect. Errors in language labeling or grammatical tagging can affect whether an utterance satisfies the rules.

The sample spans different sources, which is useful because the categories are later discussed beyond the new conversations. However, the reported score is an aggregate over that sample. It does not establish identical reliability for every source, switching direction, or participant group.

Do the categories occur outside the task?

The authors inspect Miami speech transcripts and Twitter material to check whether the main strategies are present in independent data. The most prevalent named strategy is insertion of English material into a Spanish grammatical frame.

For that strategy, the reported proportions are 25.7% in Miami and 30.1% in Twitter. The reverse insertion direction accounts for 9.0% in Miami and 5.5% in Twitter.

Alternation beginning in English and continuing in Spanish accounts for 12.2% in Miami and 12.0% in Twitter. Alternation beginning in Spanish and continuing in English accounts for 15.7% and 10.5%, respectively.

The residual category remains substantial: 37.5% in Miami and 41.9% in Twitter. This is an important qualification to the strategy framework. The categories capture recurring patterns, but a large portion of the material falls outside the operational definitions.

These distributions support the relevance of studying the selected strategies. They do not show that the task reproduces all ordinary bilingual conversation, nor that the residual utterances are linguistically unstructured.

How agent strategy relates to language balance

The M-idx results differ substantially across conditions. Insertion into a Spanish grammatical frame produces the lowest reported balance values among the main switching settings, while insertion into an English frame produces high balance values.

User language balance across COMMONAMIGOS switching conditions, M-idx

Language direction and the informal treatment accompany different balance patterns.

User language balance across COMMONAMIGOS switching conditions, M-idxSpanish frame, English insertions: 0.51Spanish frame, English insertions0.51Spanish frame, English insertions, informal: 0.57Spanish frame, English insertions,informal0.57English frame, Spanish insertions: 0.93English frame, Spanish insertions0.93English frame, Spanish insertions, informal (this paper): 0.99English frame, Spanish insertions,informal (this paper)0.99Alternation Spanish to English: 0.88Alternation Spanish to English0.88Alternation Spanish to English, informal: 0.71Alternation Spanish to English, informal0.71Alternation English to Spanish: 0.91Alternation English to Spanish0.91Alternation English to Spanish, informal: 0.70Alternation English to Spanish, informal0.70
The numbers
System or settingM-idx
Spanish frame, English insertions0.51
Spanish frame, English insertions, informal0.57
English frame, Spanish insertions0.93
English frame, Spanish insertions, informal (this paper)0.99
Alternation Spanish to English0.88
Alternation Spanish to English, informal0.71
Alternation English to Spanish0.91
Alternation English to Spanish, informal0.70

A higher M-idx is shown as higher in the chart because it indicates greater language balance. That does not make it an overall measure of conversational quality. A person can complete a task effectively while choosing mainly one language.

The authors suggest that Spanish priming helps explain the direction of the insertional results. Participants may already be inclined to use Spanish. An agent with a Spanish grammatical frame then receives considerable monolingual Spanish material, whereas an English-framed agent may encourage more English alongside the user’s Spanish.

This is an interpretation rather than a separately isolated result. The experiment does not vary the instruction language independently from the switching strategies. It therefore reveals a plausible relationship among framing, agent language, and user response without identifying the framing effect by itself.

The informal treatment raises M-idx in the insertional conditions but lowers it in the alternational conditions. I-idx behaves differently: it increases slightly in most strategy comparisons, while the English-frame insertion condition retains the same reported value. These results illustrate why balance and transition frequency should not be collapsed into one notion of “more switching.”

Users accommodate to the agent’s arrangement

The accommodation analysis considers only user utterances already classified as mixed. For each agent condition, the authors examine the normalized distribution of user strategies. If users always copied the assigned strategy, the matching category would contain all of that condition’s classified utterances.

The observed pattern is less complete but still structured. Matching categories are stronger under the corresponding controlled agents than under the random agent. The paper reports p < .05 for the diagonal comparisons and concludes that the agent influences how users switch.

The examples help explain what that influence can mean. A participant may use the English equivalent of an attribute that the agent expressed in Spanish, while arranging the overall response in a comparable switching pattern. Another can translate a hobby in the opposite direction while preserving the broader organization.

Such behavior differs from copying a word. It suggests that an interlocutor can respond to the placement of languages, even while selecting different lexical realizations. The corpus examples illustrate this possibility; the broader distribution provides the quantitative accommodation evidence.

Insertion of English material into Spanish grammar remains common even outside its matching agent condition. The authors consequently recommend it as a potential default, in part because it also appears prominently in the independent corpora. That recommendation concerns prevalence and accommodation, not a demonstrated advantage on every outcome.

Completing the shared task

Extrinsic success means identifying the mutual friend within the allotted 8 minutes. The descriptive rates vary across switching conditions.

Mutual-friend task completion across COMMONAMIGOS switching conditions

Completion rates vary descriptively, while the paper does not establish a significant strategy effect.

Mutual-friend task completion across COMMONAMIGOS switching conditionsSpanish frame, English insertions: 47Spanish frame, English insertions47Spanish frame, English insertions, informal (this paper): 77Spanish frame, English insertions,informal (this paper)77English frame, Spanish insertions: 62English frame, Spanish insertions62English frame, Spanish insertions, informal: 64English frame, Spanish insertions,informal64Alternation Spanish to English: 74Alternation Spanish to English74Alternation Spanish to English, informal: 45Alternation Spanish to English, informal45Alternation English to Spanish: 76Alternation English to Spanish76Alternation English to Spanish, informal: 64Alternation English to Spanish, informal64
The numbers
System or settingsuccess %
Spanish frame, English insertions47
Spanish frame, English insertions, informal (this paper)77
English frame, Spanish insertions62
English frame, Spanish insertions, informal64
Alternation Spanish to English74
Alternation Spanish to English, informal45
Alternation English to Spanish76
Alternation English to Spanish, informal64

The Spanish-only condition reports 72% success, the English-only condition 69%, and the random condition 64%. These comparisons show that successful collaboration is possible across different language presentations.

The paper’s discussion recommends alternation when an agent has a specific goal to accomplish, suggesting that longer stretches within one language may help comprehension. That suggestion needs to be read alongside the detailed results. The table includes a low rate for the informal Spanish-to-English alternational condition, and the conclusion states that switching strategy does not significantly affect task success.

The strongest defensible reading is therefore descriptive and exploratory. Some alternational settings perform well, but the experiment does not establish alternation as a reliable cause of higher completion. It also does not justify selecting the numerically highest condition as a universally best policy.

Conversational length and reported experience

Adding informal markers reduces average user-utterance length across the paired main strategies. The authors interpret shorter contributions as potentially consistent with a more casual exchange.

Conversation length in turns is a different matter. In the English-frame insertion setting, the formal condition has an average of 7.2 user utterances, while its informal counterpart has 8.6. For alternation beginning in Spanish, the corresponding figures are 7.5 and 9.7.

These descriptive patterns motivate the authors’ distinction between efficient completion and sustained engagement. A longer exchange might be desirable when continued interaction is the goal, but it might also indicate difficulty. The measure needs the task outcome and experience ratings beside it.

Participants generally respond positively to the experience statements. The survey uses an agreement scale of 1-5, and the authors describe favorable responses concerning interaction with bilingual friends and the partner’s conversational behavior.

Crucially, the paper reports no significant correlation between accommodation and either kind of success measure. A user’s structural alignment with the agent does not, in these data, establish better completion or a better reported experience.

Proficiency and gender patterns

The proficiency analysis divides users according to reported ability: strong in both languages, mainly strong in English, or mainly strong in Spanish. The paper treats this self-report as the most informative among several available but weak proficiency indicators.

Balanced bilinguals use alternation more often. English-dominant users show more insertion into English grammar, while Spanish-dominant users show more insertion into Spanish grammar. This agrees with the linguistic expectation that a familiar grammatical frame can support material from a less dominant language.

For English-dominant participants, greater language balance correlates with more favorable judgments of the partner’s cooperation. Greater accommodation also accompanies more turns. The authors further report that switching conditions generally improve their task success relative to the Spanish-only condition, which uses their weaker language.

The gender analysis reports different responses to informality. Female participants show longer conversations and more switching under informal conditions, whereas male participants show the opposite direction on those measures. Among female participants, higher balance and integration indices also accompany stronger agreement that the exchange resembles communication with bilingual friends.

These are subgroup associations within this population. The paper does not demonstrate that gender-based policy selection improves an agent, and it excludes the reported “Other” group, constituting 1%, from that analysis.

What the ablations show

The paper does not offer a component-removal ablation of a learned system; its explanatory evidence comes from controlled strategy comparisons, paired formality settings, annotation validation, external-corpus checks, and participant-group analyses.

Strategy comparisons isolate a conversational intervention

Keeping an agent’s strategy stable provides a direct way to ask whether users respond differently to different patterns. The accommodation comparison supports that claim: matching user categories are stronger than in the random condition.

What it does not isolate is a single microscopic cause. The strategies differ in grammatical frame, location of the switch, and quantity of material in each language. A user’s response may reflect several of these properties together.

The random condition provides a useful contrast, but it does not remove all conditioning. It presents its own unusual pattern of language changes. The analysis therefore supports influence relative to that comparison, instead of identifying an entirely intervention-free preference distribution.

The monolingual conditions answer another question. They show what happens when an agent avoids within-utterance mixing. Because successful completion remains possible there, the experiment does not make switching a prerequisite for collaboration.

The informal comparisons reveal interactions

Adding discourse markers is a relatively small change in generation, yet the measured consequences depend on the underlying strategy. Language balance rises in the insertional comparisons and falls in the alternational comparisons.

This undermines a simple claim that informal language always elicits more bilingual behavior. “More” itself has several meanings: more balanced token quantities, more transitions, more mixed utterances, or more conversations containing any mixing.

The paired results also distinguish response length from conversation length. Users can write shorter turns while contributing more turns overall. An evaluation reporting only one length measure could miss that difference.

The gender analysis extends this point. An aggregate result can conceal groups moving in different directions under the same treatment. It provides a reason to investigate variation, while stopping short of proving a demographic rule for deployment.

Proficiency offers a linguistically motivated explanation

The proficiency comparison is especially relevant because it connects behavior with the proposed distinction between insertion and alternation. Dominance in one language aligns with use of that language as the grammatical frame, while balanced proficiency aligns more strongly with alternation.

This is stronger as an interpretation than a bare demographic correlation because it matches a hypothesis described in the paper’s linguistic background. Nonetheless, proficiency is not experimentally assigned. It may accompany other differences in language use, experience, or task approach.

The authors compare several weak indicators and favor self-reported ability. They do not present the analysis as a precise proficiency assessment. The result supports a direction for future personalization instead of a completed procedure for determining an individual user’s needs.

Validation and examples clarify the level of the claim

The annotation comparison shows that automatic strategy labels have measurable agreement with expert judgments. It also establishes that disagreement remains. The downstream analysis should therefore be interpreted as relying on an imperfect detector.

The independent-corpus analysis demonstrates that the selected categories occur beyond the task. At the same time, the large residual category shows that they are not a complete description of mixed language.

Finally, the conversation examples distinguish structural accommodation from repetition of a translated word. They help make the statistical pattern intelligible. They cannot determine how often that particular mechanism explains accommodation across all conversations.

Taken together, the analyses support a layered conclusion: the agent can influence the organization of users’ switching; user characteristics also matter; and neither finding by itself demonstrates better task outcomes.

Limitations

Limits acknowledged by the authors

The authors explicitly warn that COMMONAMIGOS represents a particular participant population. It cannot stand for Spanish–English speakers everywhere. Restricting recruitment to the US limits some variation, but it also narrows the population to which the findings directly apply.

They also acknowledge that crowdsourcing may introduce unknown biases. The participants willing and able to complete this task may differ from other bilingual users in ways the recorded surveys do not reveal. The presence of multiple countries of origin does not remove that concern.

Generalization across language pairs remains open. The conclusion proposes investigating Hindi–English and Tagalog–English, among other possibilities. Those are future directions, not replications already supporting the study’s conclusions.

The agent itself has a limited design. It is rule-based, operates in a mutual-friend task, and maintains a fixed switching strategy. The authors propose more flexible generation and dynamic accommodation later. Their present experiment does not establish how an agent should decide when to change its strategy during a conversation.

The conclusion also identifies finer-grained questions left unresolved. These include the properties of the switched words, their frequency or simplicity, cognate status, and accessibility in the user’s vocabulary. The study analyzes broader strategies without determining all the lexical mechanisms that produce them.

Limits visible in the experimental setup

A careful reader should distinguish the amount of data from the number of independent participants. Some workers contribute more than one conversation. The paper reports this clearly, but the main account does not provide enough statistical detail to determine how participant repetition affects every comparison.

The recruitment quiz offers limited evidence of proficiency. Performance on the Spanish questions can help describe the pool, yet it does not establish balanced command of both languages. The subgroup analysis instead relies on self-report, which is informative but not equivalent to a comprehensive assessment.

The interface also combines several influences. Spanish instructions intentionally prime participants, and bilingual tables make vocabulary available in both languages. The authors consider priming when discussing the results, but do not independently vary it. Consequently, the study cannot isolate how much of the observed Spanish use comes from instructions, displayed content, or the partner.

The translation-based architecture creates another uncertainty. Incoming mixed utterances are transformed before the task engine interprets them. The paper does not report a separate quantitative evaluation of translation fidelity for those contributions. A successful or failed task exchange may therefore reflect more than the conversational switching policy.

The automatic classifier is interpretable but incomplete. Its conditions depend on detecting word language and grammatical category, and its F1 does not indicate perfect agreement. The residual class is also large in the independent corpora. Conclusions about specific strategies apply to those operational definitions, not every possible linguistic analysis of switching.

Descriptive differences do not establish a winning strategy

The discussion sometimes offers stronger practical recommendations than the final significance claim can sustain. Alternation is suggested for goal completion, yet the conclusion says that task success is not significantly affected by strategy.

These statements can coexist if the recommendation is treated as an exploratory hypothesis informed by descriptive patterns. They should not be merged into a claim that alternation has been proven superior. The detailed condition results are uneven, including variation among informal counterparts.

The same caution applies to the highest success rate in the table. Selecting the numerically strongest condition would ignore uncertainty, condition sizes, participant variation, and the absence of an established overall strategy effect.

Accommodation has a similarly bounded interpretation. The study finds evidence that users shift their strategy distribution towards the agent. It does not find significant links from that accommodation to the success measures. Behavioral influence is demonstrated more directly than practical benefit.

The paper also reports aggregate positive experience without furnishing a general account of which interface features cause it. Enjoyment, perceived similarity to friends, cooperation, and task understanding are related but distinct judgments. Their presence does not certify that every switching policy is equally suitable.

Demographic findings require individual caution

The proficiency results give a plausible basis for studying adaptation, but they do not imply that every person in a group prefers the same strategy. A speaker’s language choice may change across tasks, topics, partners, and moments in the same exchange.

The gender findings are even less suited to a fixed policy rule. They describe correlations in this task and population. They do not establish that gender causes the differences or that assigning styles by gender would improve experience.

The exclusion of the small “Other” group also limits what the analysis can say about reported gender beyond the compared categories. The results should be presented at their actual scope, rather than generalized into a complete taxonomy of user behavior.

A stronger adaptive claim would require an agent to observe relevant evidence, choose a strategy, and demonstrate improved outcomes against an appropriate comparison. That experiment lies beyond the fixed-condition study.

Written task dialogue is a bounded setting

The conversations are text-based and organized around a narrowly specified shared goal. The agent’s useful vocabulary and actions are constrained by friend attributes and reference to table entries.

This makes experimental control possible, but limits claims about open-ended conversation. The study does not test sustained personal discussion, unrestricted topics, or spoken interaction. In particular, findings from writing do not establish consequences for pronunciation, timing, or speech recognition.

The time-limited task also gives conversation length an ambiguous meaning. More turns may indicate engagement, accommodation, difficulty, or a mixture. The authors appropriately consider task completion and reported experience as additional evidence, but the available measurements do not resolve every interpretation.

The paper is most convincing as an exploratory investigation of structured bilingual interaction. Its framework makes several influences measurable, while its limitations explain why a broadly adaptive conversational agent remains a research objective.

What came after

The paper ends by proposing a next stage in which agents change switching strategies during an exchange. That would reverse part of the present design. Here, the agent remains fixed so that researchers can observe the user; in an adaptive system, the agent would use the user’s behavior to guide its own choices.

The authors also propose investigating switching at a finer level. Their strategy categories distinguish broad arrangements, but do not explain why a particular word becomes the switch location. Examining lexical frequency, simplicity, cognates, and accessibility could help connect the observed conversation patterns with more specific accounts of bilingual production.

Another proposed direction concerns understanding. Knowledge of a user’s preferred switching arrangement might help an agent interpret or anticipate subsequent utterances. The present study supplies motivation for that idea, rather than a measured improvement in interpretation.

Further work is also needed across populations and language pairs. Such comparisons could determine which findings reflect the particular participants and task, and which extend to other bilingual settings. Replication would be especially valuable for the demographic patterns and the practical recommendations drawn from descriptive differences.

No subsequent citing studies are identified here. The developments that can be described securely are therefore the authors’ proposed research directions, rather than verified later implementations or results. The paper leaves a concrete starting point: a released conversational corpus, explicit switching categories, and evidence that an agent’s linguistic organization can shape a user’s response. The unresolved step is to show when adapting that organization produces a better interaction.

Cite

Cite as Emily Ahn, Cecilia Jimenez, Yulia Tsvetkov and Alan W Black. 2020. What Code-Switching Strategies are Effective in Dialog Systems?. Proceedings of the Society for Computation in Linguistics 2020.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{ahn2020what,
  title = {{What Code-Switching Strategies are Effective in Dialog Systems?}},
  author = {Emily Ahn, Cecilia Jimenez, Yulia Tsvetkov and Alan W Black},
  booktitle = {Proceedings of the Society for Computation in Linguistics 2020},
  year = {2020},
  url = {https://aclanthology.org/2020.scil-1.32/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ahn-2020-what-code-switching-strategies-are/