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.
- TermCode-switchingCode-switching is moving between two languages, or two varieties of one, within a single conversation or even a single sentence.Cognitive science & linguistics
- TermDiglossiaDiglossia is a lasting arrangement in which a community keeps one variety of its language for formal use and another for everyday talk.Cognitive science & linguistics
Comparison
| Code-switchingCognitive science & linguistics | DiglossiaCognitive science & linguistics | |
|---|---|---|
| What it describes | One speaker moving between two languages or varieties within a conversation, sometimes within a sentence | A community's lasting division of work between a high variety for formal use and a low one for everyday talk |
| Level | The speaker and the single conversation | The whole community and its settings |
| What decides the choice | The speaker, moment by moment: a quotation, a new topic, closeness or the better word | 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 | Ordinary, and a sign of skill in both codes | Out of place. The wrong variety sounds comic or pompous |
| How the codes are learned | Both are codes the speaker commands | The low variety at home and the high one at school. Nobody has the high variety as a mother tongue |
| Classic studies | Blom 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
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.
Code-switching
Code-switching is moving between two languages, or two varieties of one, within a single conversation or even a single sentence.
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