TermCognitive science & linguisticsAlso in Sociology, Anthropology

Code-switching

Code-switching is moving between two languages, or two varieties of one, within a single conversation or even a single sentence.

Difficulty: Entry level2 min read

Saved entries

The term

Code-switching is the use of two or more languages, or distinct varieties of one, within a single conversation. A "code" is any language or variety. A student in Kuala Lumpur might tell a friend, "I was so tired, terus tidur", finishing an English sentence with the Malay for "went straight to sleep". Neither finds this odd.

Switches fall between sentences or inside one, and they follow rules: bilinguals tend to switch at points where the grammars of both languages allow it. People switch to quote someone, to mark a change of topic, to signal closeness or because one language has the better word.

In everyday American usage the phrase now also means adjusting speech and manner to fit a setting, as many Black Americans do in mostly white workplaces.

Diagram

How Code-switching connects

How Code-switching connectsConcept map with Code-switching (Term, Cognitive science & linguistics) at the centre. It belongs to Sociolinguistics (School or branch, Cognitive science & linguistics), contrasts with Diglossia (Term, Cognitive science & linguistics), contrasts with Pidgin and creole (Term, Cognitive science & linguistics), applied in Psycholinguistics (School or branch, Cognitive science & linguistics), applied in Race and ethnicity (School or branch, Sociology) and applied in Social and cultural anthropology (School or branch, Anthropology).Code-switchingSociolinguisticsDiglossiaPidgin and creolePsycholinguisticsRace and ethnicitySocial and culturalanthropologyBelongs toContrasts withApplied in
Generated from the entry’s links. The full list is under Connections.
Read as text

Concept map with Code-switching (Term, Cognitive science & linguistics) at the centre. It belongs to Sociolinguistics (School or branch, Cognitive science & linguistics), contrasts with Diglossia (Term, Cognitive science & linguistics), contrasts with Pidgin and creole (Term, Cognitive science & linguistics), applied in Psycholinguistics (School or branch, Cognitive science & linguistics), applied in Race and ethnicity (School or branch, Sociology) and applied in Social and cultural anthropology (School or branch, Anthropology).

In a sentence

The cousins' code-switching between Cantonese and English was so quick that neither could say afterwards which language a sentence had started in.

Key features

  • It takes skill in both codes, and the most fluent bilinguals tend to switch most smoothly.
  • Switches cluster at grammatical boundaries where the two languages line up.
  • Situational switching follows a change of setting or listener, while metaphorical switching adds a social meaning within one setting.
  • Communities differ: in some it is the ordinary way to talk and in others it is frowned on.

Not to be confused with

Look-alikes of Code-switching, and how each differs
Look-alikeThe differenceDiffers on
BorrowingA borrowed word, like "sushi" in English, has joined the vocabulary and is used by people who know no Japanese. A switch draws on a second language the speaker commands.Differs onUnit of analysis
DiglossiaDiglossia is a community-wide rule about which variety suits which setting. Code-switching is one speaker's movement between codes, often within one setting.Differs onLevel
Pidgin and creoleA code-switcher alternates between two languages and keeps each grammar intact. A pidgin or creole is a single new system built by people who lacked a common language.Differs onMechanism
TranslanguagingTranslanguaging, a term from Welsh bilingual schooling developed by Ofelia García, denies that bilinguals hold separate languages to switch between and treats what they know as one repertoire.Differs onClaim
  • Differs onUnit of analysis

    Borrowing

    A borrowed word, like "sushi" in English, has joined the vocabulary and is used by people who know no Japanese. A switch draws on a second language the speaker commands.

  • Differs onLevel

    Diglossia

    Diglossia is a community-wide rule about which variety suits which setting. Code-switching is one speaker's movement between codes, often within one setting.

  • Differs onMechanism

    Pidgin and creole

    A code-switcher alternates between two languages and keeps each grammar intact. A pidgin or creole is a single new system built by people who lacked a common language.

  • Differs onClaim

    Translanguaging

    Translanguaging, a term from Welsh bilingual schooling developed by Ofelia García, denies that bilinguals hold separate languages to switch between and treats what they know as one repertoire.

Origins and development

The phrase entered linguistics in the early 1950s. Its use for bilingual speech is usually traced to Hans Vogt's 1954 review of Uriel Weinreich's Languages in Contact. Jan-Petter Blom and John Gumperz's 1972 study of a Norwegian town and Shana Poplack's 1980 work on Puerto Rican New York turned it into a research field.

Why it matters

Most of the world's people use more than one language, so switching is ordinary human talk. Teachers once punished it as laziness or confusion. The research finds that it shows command of both languages. The term bears on how schools treat bilingual pupils and on how voice software copes with mixed speech.

Critiques and limits

Peter Auer questions whether speakers always treat their own talk as two separate codes. García argues that the term imposes named languages on a single repertoire. The popular sense is disputed too. Vershawn Ashanti Young sees the expectation that Black employees switch as a demand to assimilate. Others defend switching as a practical skill that widens a speaker's options.

Connections

Belongs to

  • Sociolinguistics

    Sociolinguists study when bilinguals switch, where in the sentence they do it and what the switch signals.

Contrasts with

  • Diglossia

    Differs on level. Diglossia is a community's allocation of varieties to settings, while code-switching is one speaker's movement between codes in conversation.

  • Pidgin and creole

    Differs on mechanism. A code-switcher alternates between two intact languages, while a pidgin or creole is one new system.

Applied in

  • Psycholinguistics

    Experiments on switching show how bilinguals keep two languages active and select between them in milliseconds.

  • Social and cultural anthropologyAnthropology

    Ethnographers read switches as signals of identity, closeness and group membership.

  • Race and ethnicitySociology

    In the United States the term now also names how minority speakers adjust speech and manner in mostly white settings.

Further reading

  • Blom, J.-P., & Gumperz, J. J. (1972). Social meaning in linguistic structure: Code-switching in Norway. In J. J. Gumperz & D. Hymes (Eds.), Directions in sociolinguistics: The ethnography of communication (pp. 407–434). Holt, Rinehart and Winston.
  • Gardner-Chloros, P. (2009). Code-switching. Cambridge University Press. https://doi.org/10.1017/CBO9780511609787
  • Poplack, S. (1980). Sometimes I'll start a sentence in Spanish y termino en español: Toward a typology of code-switching. Linguistics, 18(7–8), 581–618. https://doi.org/10.1515/ling.1980.18.7-8.581

Cite this entry

Scholia. (2026). Code-switching. In Scholia: Notes in the margin of the human sciences. Retrieved November 28, 2026, from https://scholia.zennia.sg/terms/code-switching

This topic is contested. The entry sets out the main positions rather than settling them.