VersusCognitive science & linguistics

Code-switching vs diglossia

Code-switching is one speaker moving between codes in a conversation. Diglossia is a community's fixed rule about which variety suits which setting.

Difficulty: Intermediate2 min read

Saved entries

A two-colour banded scarf on a shelf, beside a dress shoe and a house slipper set apart.
Illustration drawn for Scholia.

Comparison

Code-switching vs diglossia: side-by-side comparison
Code-switchingCognitive science & linguisticsDiglossiaCognitive science & linguistics
What it describesOne speaker moving between two languages or varieties within a conversation, sometimes within a sentenceA community's lasting division of work between a high variety for formal use and a low one for everyday talk
LevelThe speaker and the single conversationThe whole community and its settings
What decides the choiceThe speaker, moment by moment: a quotation, a new topic, closeness or the better wordThe setting. A sermon, a news bulletin or a textbook calls for the high variety and the market for the low
Mixing within one settingOrdinary, and a sign of skill in both codesOut of place. The wrong variety sounds comic or pompous
How the codes are learnedBoth are codes the speaker commandsThe low variety at home and the high one at school. Nobody has the high variety as a mother tongue
Classic studiesBlom and Gumperz in a Norwegian town (1972), Poplack in Puerto Rican New York (1980)Ferguson's four cases (1959): Arabic, Modern Greek, Swiss German and Haitian Creole
  • What it describes

    Code-switching
    One speaker moving between two languages or varieties within a conversation, sometimes within a sentence
    Diglossia
    A community's lasting division of work between a high variety for formal use and a low one for everyday talk
  • Level

    Code-switching
    The speaker and the single conversation
    Diglossia
    The whole community and its settings
  • What decides the choice

    Code-switching
    The speaker, moment by moment: a quotation, a new topic, closeness or the better word
    Diglossia
    The setting. A sermon, a news bulletin or a textbook calls for the high variety and the market for the low
  • Mixing within one setting

    Code-switching
    Ordinary, and a sign of skill in both codes
    Diglossia
    Out of place. The wrong variety sounds comic or pompous
  • How the codes are learned

    Code-switching
    Both are codes the speaker commands
    Diglossia
    The low variety at home and the high one at school. Nobody has the high variety as a mother tongue
  • Classic studies

    Code-switching
    Blom and Gumperz in a Norwegian town (1972), Poplack in Puerto Rican New York (1980)
    Diglossia
    Ferguson's four cases (1959): Arabic, Modern Greek, Swiss German and Haitian Creole

Diagram

One is a speaker's move and the other is a community's rule

One is a speaker's move and the other is a community's ruleTwo overlapping circles. The left circle, code-switching, holds one speaker, movement within a conversation and the speaker's own choice. The right circle, diglossia, holds the whole community, a choice fixed by setting and high and low varieties. The shared centre holds two codes in use.Code-switchingDiglossiaone speakerwithin a conversationspeaker's own choicewhole communityfixed by settinghigh and low varietiesTwo codesin use
One is a speaker's move and the other is a community's ruleTwo overlapping circles. The left circle, code-switching, holds one speaker, movement within a conversation and the speaker's own choice. The right circle, diglossia, holds the whole community, a choice fixed by setting and high and low varieties. The shared centre holds two codes in use.Code-switchingDiglossiaOnly Code-switchingone speakerwithin a conversationspeaker's own choiceBothTwo codes in useOnly Diglossiawhole communityfixed by settinghigh and low varieties
Code-switching (Blom and Gumperz, 1972) and diglossia (Ferguson, 1959) sit at different levels.
Read as text

Two overlapping circles. The left circle, code-switching, holds one speaker, movement within a conversation and the speaker's own choice. The right circle, diglossia, holds the whole community, a choice fixed by setting and high and low varieties. The shared centre holds two codes in use.

Why people confuse them

Both involve people who command two codes and move between them, so an outsider sees the same thing: a speaker who sounds different from one moment to the next. The research adds to the blur. Blom and Gumperz called one kind of switching situational, because it follows a change of setting or listener, and that looks like diglossia on a small scale. Joshua Fishman then stretched diglossia in 1967 to cover pairs of unrelated languages, which are the usual material of code-switching.

Diglossia

Diglossia is a lasting arrangement in which a community keeps one variety of its language for formal use and another for everyday talk.

Read the entry

Code-switching

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

Read the entry

When the difference matters

Take two things a teacher might hear in one week. In a Zurich classroom a boy answers a question in Swiss German, though the lesson runs in Standard German. In a Kuala Lumpur playground two girls chat in English with Malay phrases dropped in mid-sentence.

A teacher who files both under "mixing languages" misreads both. The boy has mixed nothing: he has used the home variety in a setting his community keeps for the school one, and no child brings the school variety from home. He needs teaching in it, and time. The girls have broken no rule of setting at all, and their switches fall where the two grammars allow, which takes command of both languages. Correcting them treats a skill as a fault.

Where they overlap

Both belong to sociolinguistics, and both show that a choice of code carries social meaning. They also occur together in the same community. El-Said Badawi described five levels of Egyptian Arabic with speakers sliding between them, which is switching inside a diglossic frame. Critics of each term make a similar complaint: it draws firmer lines between codes than speakers do.

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.
  • Ferguson, C. A. (1959). Diglossia. Word, 15(2), 325–340. https://doi.org/10.1080/00437956.1959.11659702
  • Fishman, J. A. (1967). Bilingualism with and without diglossia; diglossia with and without bilingualism. Journal of Social Issues, 23(2), 29–38. https://doi.org/10.1111/j.1540-4560.1967.tb00573.x
  • Wardhaugh, R. (2010). An introduction to sociolinguistics (6th ed.). Wiley-Blackwell.

Cite this entry

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