Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

Can Generative AI Interpret Code-Switching Correctly?

Generative AI can interpret many code-switched expressions, but accuracy varies with language combinations, conversational context, and cultural meaning. Researchers should verify whether AI preserves the intended meaning of mixed-language communication before using its outputs in multilingual analysis.

781
AI Interpretation of Code-Switching Guide 781 of 1196
01 · The Question

Can AI Understand Participants Who Switch Between Languages?

You are analyzing interviews with Filipino university students about their experiences of online learning. Participants frequently switch between Filipino and English, sometimes within a single sentence.

One student explains, "Okay naman yung platform, pero ang hirap mag-focus kapag sabay-sabay yung deadlines." Another says, "I understand the lessons, pero minsan nakakahiya magtanong during class."

A generative AI system can usually recognize many of the words and produce an English interpretation. But does it understand the complete meaning, including the relationships between the languages, the speaker's attitude, and the social context?

Code-switching is common in multilingual communication. For researchers, the concern is whether AI can interpret mixed-language responses without introducing errors, removing meaningful distinctions, or imposing interpretations that participants did not express.

02 · The Short Answer

AI Can Interpret Code-Switching, but Accuracy Depends on Context

In Brief

Generative AI can interpret many code-switched expressions, particularly when it has sufficient exposure to the languages involved and receives relevant conversational context. However, its interpretations may be inaccurate when mixed-language communication contains regional expressions, culturally specific meanings, ambiguous grammatical relationships, or language choices that carry important social or emotional significance.

Researchers should not assume that a model's ability to understand two languages separately establishes reliable interpretation when those languages are combined. Consequential code-switched material should be evaluated using authentic examples and qualified reviewers familiar with the relevant linguistic context.

03 · What You Need to Know

How Code-Switching Affects Generative AI Interpretation

What Is Code-Switching?

Code-switching refers to the use of more than one language or linguistic variety within a conversation, interaction, or discourse.

Speakers may switch languages between sentences, within sentences, or at particular points in an exchange.

For example, a Filipino student might say, "The instructions were clear, pero kulang yung time para matapos."

The sentence combines English and Filipino to communicate that the instructions were understandable but the available time was insufficient.

Code-switching is not necessarily random or evidence of inadequate language proficiency. It can be a normal feature of multilingual communication, shaped by participants' linguistic repertoires, conversational goals, and social contexts.

In some settings, researchers also use the term code-mixing. Definitions and distinctions between code-switching and code-mixing vary across linguistic traditions, so studies should explain how these terms are operationalized.

Code-Switching Can Occur at Different Linguistic Levels

Not all mixed-language communication has the same structure.

Pattern Illustrative expression Interpretive concern
Between sentences "The lecture was helpful. Pero mahirap yung exam." Preserving the relationship between statements
Within a sentence "I submitted the assignment kahit late na." Interpreting grammatical and semantic relationships
Discourse marker switching "Actually, okay naman yung discussion." Understanding conversational emphasis and stance
Technical vocabulary switching "Hindi ko ma-interpret yung regression coefficient." Preserving specialized terminology
Borrowed or integrated expressions "Nag-upload ako ng requirements." Distinguishing established borrowing from active switching where analytically relevant

These examples are illustrative rather than an exhaustive linguistic classification.

Researchers should also recognize that the boundary between borrowing and code-switching can be difficult to establish, especially when foreign-origin words have become conventional in local usage.

Understanding Individual Words Is Not Enough

A model may correctly recognize the English and Filipino words in a sentence while misunderstanding how they combine to express a complete idea.

Consider the statement, "I wanted to participate, pero nahihiya ako magtanong."

A reasonable interpretation is that the student wanted to participate but felt hesitant or embarrassed about asking questions.

However, the expression "nahihiya" may carry context-dependent meanings involving embarrassment, social discomfort, modesty, or sensitivity to interpersonal expectations.

An AI system that translates the statement simply as "I was ashamed to ask" may introduce a stronger or different interpretation than the participant intended.

The difficulty is not necessarily identifying the language. It is preserving the intended relationship between the words, the speaker's stance, and the relevant context.

Language Switching May Communicate Social Meaning

Multilingual speakers sometimes select languages in ways that communicate identity, familiarity, social distance, emphasis, or alignment with other participants.

For example, a participant may use English when describing formal academic procedures but switch to Filipino when discussing personal experiences.

Such a pattern might be relevant to a study of identity, classroom participation, or educational experience.

However, researchers should not automatically interpret every switch as emotionally or socially meaningful. Language choice may also reflect habit, lexical availability, topic conventions, or the linguistic practices of the interaction.

Determining whether a switch carries analytical significance requires attention to the broader conversation and research question.

AI-generated interpretations should therefore be treated as provisional rather than as evidence of a speaker's hidden intentions.

Generative AI May Normalize Mixed-Language Responses

When asked to summarize or translate code-switched material, generative AI may convert the response into polished monolingual prose.

This can be useful when the research objective is to communicate the general content of a response to readers who do not understand the original languages.

However, normalization can remove hesitation, repetition, informal expressions, and language-switching patterns.

For some qualitative research questions, these features are part of the data rather than obstacles to readability.

For example, a participant's movement between formal academic English and informal Filipino may be relevant to how they describe institutional expectations or personal experiences.

Researchers should distinguish a readable translation from a linguistically faithful transcript.

Content interpretation Identifying what the speaker communicates at the level of propositions or general meaning.
Discourse-sensitive interpretation Examining how language choices, conversational structure, emphasis, and contextual features contribute to meaning.

A model may perform adequately on the first task while providing insufficient evidence for the second.

Code-Switching Can Complicate Sentiment Analysis

Researchers sometimes use AI to classify participant responses as positive, negative, or neutral.

Code-switched responses can complicate these classifications because sentiment may be expressed through language-specific particles, idioms, sarcasm, or culturally situated expressions.

Consider the statement, "Okay naman yung system, kaso every week may bagong problema."

A simplistic interpretation might classify the response as positive because it begins with an apparently favorable expression.

Yet the complete statement communicates a qualified evaluation in which recurring problems may be central to the participant's experience.

The correct analytical classification depends on the study's coding framework. Researchers should avoid treating a model's sentiment label as an objective property of the response.

Independent human review and examination of disagreements can help identify whether the model systematically overlooks language-specific qualifications.

Technical Terms May Be Embedded in Another Language's Grammar

In educational and scientific contexts, speakers frequently incorporate English technical vocabulary into sentences structured primarily in another language.

For example, a student might say, "Hindi ko gets kung paano i-interpret yung p-value."

The technical term "p-value" remains in English, while the surrounding sentence expresses difficulty understanding its interpretation.

An AI system should preserve the technical meaning rather than substituting a related but different statistical concept.

Researchers should verify technical terminology in multilingual material, especially when the response concerns specialized disciplinary knowledge.

Code-switching does not automatically make technical terminology ambiguous, but it can increase the importance of contextual interpretation.

Performance May Vary Across Language Pairs and Communities

A model's success with English-Filipino code-switching does not establish equivalent performance with English-Cebuano, Arabic-French, Hindi-English, or other combinations.

Differences in available training resources, grammatical structures, writing conventions, and regional varieties may influence performance.

Even within one language pair, formal classroom communication may differ considerably from informal peer conversations.

Researchers should therefore examine the actual linguistic patterns represented in their study.

Uneven AI performance across languages and limited resources for particular varieties can affect the reliability of code-switched interpretation.

The problem may be especially difficult to evaluate when authentic code-switched datasets are scarce.

Code-Switching Is Not the Same as Translation

Translating a code-switched statement into one language can help readers understand its general content.

However, translation may remove information about the speaker's language choices and conversational structure.

If the research question concerns the participant's experience rather than language use, a carefully verified translation may be appropriate.

If the study examines linguistic identity, classroom discourse, or interactional practices, preserving the original code-switching may be methodologically necessary.

Researchers should decide what information must remain available before asking AI to translate or normalize the material.

Context Windows and Segmentation Can Affect Interpretation

Code-switched expressions may depend on earlier turns in a conversation.

A short statement such as "Oo, pero not really" can have different meanings depending on the question being answered and the preceding discussion.

When researchers submit isolated excerpts to an AI system, they may remove the context needed for accurate interpretation.

Providing relevant surrounding material may improve understanding, although additional context does not guarantee correctness.

Researchers should also consider privacy and confidentiality before supplying entire interview transcripts to external services.

Where context cannot be shared safely, locally approved processing or human interpretation may be preferable.

Human Review Should Be Based on the Original Code-Switched Material

For consequential qualitative analysis, reviewers should examine the original responses rather than evaluating only AI-produced English translations.

A translated version may already contain omissions or interpretations that are difficult to detect without access to the source.

Qualified reviewers should understand the relevant languages and the linguistic practices of the participants.

Where possible, researchers should establish independent coding or interpretation criteria before comparing human and AI outputs.

This helps avoid treating AI-generated explanations as the default interpretation against which human judgments must be measured.

How Can Researchers Evaluate AI Code-Switching Interpretation?

Evaluation should begin with the intended task.

For translation, researchers may assess whether the output preserves the original meaning and important discourse features.

For qualitative coding, they may compare AI-generated codes against independently developed human interpretations.

For classification, they may examine errors across relevant language combinations, switching patterns, and participant groups.

A useful evaluation set should include naturally occurring code-switched material, not only artificial sentences constructed by combining translated fragments.

Researchers should also examine disagreements qualitatively. A single accuracy score may conceal recurring problems involving negation, sarcasm, culturally specific expressions, or discourse markers.

These procedures support validation of AI-assisted multilingual analysis.

04 · A Practical Example

Interpreting Taglish Interview Responses About Classroom Participation

Hypothetical Example

When an AI Summary Overstates a Student's Experience

A researcher interviews Filipino university students about participation in synchronous online classes.

One participant says:

"Gets ko naman yung lesson, pero minsan nahihiya akong mag-recite kasi baka mali yung sagot ko."

The participant communicates that they generally understand the lesson but sometimes hesitate to recite because they are concerned that their answer may be incorrect.

An AI system produces the following English summary:

"The student lacks confidence in their academic abilities and avoids participating in class."

The summary may appear reasonable, but it introduces broader interpretations that are not fully supported by the statement.

The participant did not necessarily describe a general lack of academic confidence or complete avoidance of participation.

Step 1: Preserve the original response

The researcher retains the Taglish statement as the primary evidence rather than replacing it with the AI-generated summary.

Step 2: Identify the explicit meaning

A qualified bilingual reviewer distinguishes the participant's reported understanding of the lesson from their occasional hesitation to answer publicly.

Step 3: Examine the AI's additional inferences

The researcher identifies the unsupported generalizations concerning academic confidence and habitual avoidance.

Step 4: Produce a more faithful interpretation

A revised summary states: "The student generally understands the lesson but sometimes hesitates to participate verbally because of concern about giving an incorrect answer."

Step 5: Separate description from analytical coding

The researcher considers whether the response supports a code relating to fear of incorrect answers or participation hesitation, without treating broader psychological interpretations as established facts.

Step 6: Document the decision

The research team records the AI-generated interpretation, the identified overstatement, and the rationale for the revised summary.

The problem is not that the AI failed to recognize Filipino or English words. It produced an interpretation that went beyond the participant's explicit statement.

This distinction matters because qualitative research requires researchers to justify the movement from participant language to analytical interpretation.

A fluent summary can be useful, but it should not silently transform a situational concern into a generalized psychological characteristic.

05 · What Researchers Often Get Wrong

Common Misconceptions About AI Interpretation of Code-Switching

Misconception

If AI Understands Both Languages, It Automatically Understands Code-Switching

Competence in two languages separately does not guarantee accurate interpretation when they are combined. Mixed-language grammar, discourse markers, and contextual meanings may create additional challenges.

Misconception

Code-Switching Is Simply Incorrect or Incomplete Language

Code-switching is a recognized feature of multilingual communication. It can follow systematic linguistic patterns and serve meaningful conversational functions.

Misconception

Translating Everything Into English Preserves All Relevant Information

Monolingual translation may preserve general content while removing language choices, interactional features, or culturally significant expressions. Whether those losses matter depends on the research question.

Misconception

Every Language Switch Has a Hidden Emotional Meaning

Speakers may switch languages for many reasons, including habit, topic, vocabulary availability, or social context. Researchers should not infer psychological motives without supporting evidence.

Misconception

Fluent AI Summaries Are Faithful Interpretations

A fluent summary may omit qualifications or introduce unsupported generalizations. Researchers should compare consequential interpretations against the original code-switched material.

Misconception

One Taglish Evaluation Establishes Reliability for Every Code-Switched Population

Code-switching practices vary across communities, regions, and contexts. Evaluation findings should not be generalized beyond the linguistic patterns and tasks adequately represented in the evidence.

06 · What This Means for You

How Should Researchers Use AI With Code-Switched Research Data?

Researchers should first determine whether their analytical objective concerns the general content of participant responses or the linguistic features through which that content is communicated.

For some studies, verified translations or summaries may be sufficient. For others, the original switching patterns are part of the evidence and should remain available throughout analysis.

A practical code-switching interpretation framework

If the task is to communicate general meaning
Use AI translation or summarization provisionally and verify consequential passages against the original response.
If the research examines language use or identity
Preserve the original code-switching and avoid replacing it with normalized monolingual text.
If AI assigns qualitative codes
Compare its interpretations with independently established coding criteria and examine disagreements.
If responses contain culturally specific or regional expressions
Use qualified contextual review and retain source-language expressions where relevant.
If the model's performance has not been evaluated for the language combination
Conduct representative preliminary testing before relying on AI-generated interpretations.

Researchers should also consider whether translation should occur before or after qualitative coding. The appropriate sequence depends on the study's analytical approach and the language expertise available to the research team.

Where AI is used to assist interpretation, the methodology should explain what the system did, how its outputs were verified, and how disagreements were resolved.

The objective is not to prohibit AI from processing mixed-language material. It is to ensure that the convenience of automated interpretation does not replace the evidence needed to understand what participants actually communicated.

07 · A Quick Checklist

Before Using AI to Interpret Code-Switched Research Material

Check whether the interpretation is defensible:
Identify the languages, regional varieties, and code-switching patterns represented in the material.
Determine whether language switching itself is relevant to the research question.
Preserve the original code-switched text where ethically permissible.
Evaluate the AI system using representative, naturally occurring mixed-language examples.
Verify negation, qualifications, idioms, discourse markers, and specialized terminology.
Check whether AI summaries introduce unsupported psychological or cultural interpretations.
Use qualified bilingual and contextual reviewers for consequential passages.
Distinguish participant statements from researcher-generated analytical interpretations.
Document the role of AI, verification procedures, and significant interpretive disagreements.
08 · Frequently Asked Questions

Frequently Asked Questions About AI and Code-Switching

Can ChatGPT understand Taglish accurately?

It can interpret many Taglish expressions, but accuracy depends on the model, context, regional vocabulary, and task. Researchers should verify consequential interpretations rather than assuming that fluent English summaries are faithful to the original.

What is the difference between code-switching and code-mixing?

The terms are sometimes used differently across linguistic traditions. Code-switching broadly refers to alternation between languages or varieties, while code-mixing is sometimes used for combinations within an utterance. Researchers should define their terminology explicitly.

Can AI translate code-switched interview responses into English?

Yes, but translation may remove linguistic features or culturally specific meanings. Researchers should preserve the original material and verify passages that influence analysis.

Does code-switching always indicate a participant's emotional state?

No. Language switching may reflect conversational habits, topic conventions, vocabulary availability, identity, or other factors. Emotional interpretations require contextual evidence.

Can AI perform sentiment analysis on Taglish responses?

It can generate sentiment classifications, but reliability should be evaluated using representative responses and independently established criteria. Mixed-language qualifications, sarcasm, and culturally specific expressions can affect classification.

Should researchers remove code-switching before qualitative coding?

Not automatically. Removing language switching may erase analytically relevant information. The decision should reflect the research question, analytical framework, and available language expertise.

Can AI-generated summaries replace bilingual qualitative researchers?

AI summaries may assist with preliminary organization, but they do not independently establish participant meaning or justify analytical interpretations. Qualified human involvement remains important when language and context affect the findings.

How can researchers test AI accuracy on code-switched data?

Use authentic examples representing the relevant language combinations, establish independent reference judgments, evaluate task-specific errors, and examine disagreements involving context, terminology, and meaning.

09 · The Bottom Line

Understanding Code-Switching Requires More Than Recognizing Two Languages

The Bottom Line

Generative AI can interpret many code-switched expressions, but reliable interpretation depends on preserving the relationships between languages, the speaker's intended meaning, and the relevant conversational and cultural context.

Researchers should evaluate AI using authentic mixed-language material, preserve original responses, and verify consequential interpretations with appropriate linguistic expertise. A fluent monolingual summary may communicate the general message, but it should not automatically replace the richer evidence contained in the original code-switched expression.

10 · Sources and Further Reading

Research on Code-Switching and Multilingual Language Processing

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes