What does Code-Switching Thresholds and Monolingual Precision conclude, in numbers, about “The Information at a Switch Point: Surprisal, Word Length and Uniform Density”?

Answer: The circumlocution runs to 16 syllables with a peak of 2.67 bits and a variance of only 0.10; no syllable exceeds capacity. The inserted word shortens the utterance to 12 syllables and carries 35.00 bits in total, slightly less than the 36.00 of the circumlocution. But its peak rises to 7.50, its variance to 4.20, and the bits above capacity add up to 5.00. The squared cost, one way the uniform density view penalises peaks, rises from 82.67 to 152.50.

Scope of the numbers: Parameters are illustrative and all calculations are generated by the book's programs; nothing corresponds to a real customer, conversation or sale, and Malay, Hokkien, Cantonese, English and Mandarin are treated as equals. This is not linguistic doctrine and not business advice to any individual or company.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.10, 12, 152.50, 16, 2.67, 35.00

renderingsylbitsmeanvarpeaksq-costover
circumlocution1636.002.2500.102.6782.670.00
insert1235.002.9174.207.50152.505.00
insert+gloss1637.002.3124.257.50153.505.00
Show the full program
# Chapter 2. p22: how three renderings spread the same meaning in time.
# Ten context syllables carry 2 bits each. The gap concept needs 14 bits.
# Circumlocution spreads 14 bits plus 2 bits of function syllables over
# six syllables. A known inserted word packs 14 bits plus a 1-bit switch
# cue into two syllables. Insertion plus a four-syllable gloss repeats
# the meaning, so the gloss syllables carry 0.5 bits each for a listener
# who knew the word. Capacity 5 bits per syllable is illustrative; the
# squared cost follows the uniform-information-density idea (Jaeger 2010).
import math

CONTEXT = [2.0] * 10
CAP = 5.0


def profile(kind):
    if kind == "circumlocution":
        gap = [16.0 / 6.0] * 6
    elif kind == "insert":
        gap = [7.5, 7.5]
    else:
        gap = [7.5, 7.5] + [0.5] * 4
    return CONTEXT[:5] + gap + CONTEXT[5:]


if __name__ == "__main__":
    print("rendering        syl   bits   mean  var    peak  sq-cost  over")
    for kind in ("circumlocution", "insert", "insert+gloss"):
        x = profile(kind)
        n = len(x)
        tot = math.fsum(x)
        mean = tot / n
        var = math.fsum((v - mean) ** 2 for v in x) / n
        sq = math.fsum(v * v for v in x)
        over = math.fsum(max(0.0, v - CAP) for v in x)
        print("{:<15} {:>4} {:>6.2f} {:>6.3f} {:>5.2f} {:>6.2f} {:>8.2f}"
              " {:>5.2f}".format(kind, n, tot, mean, var, max(x), sq, over))

Single source and citation

Fan, Y. (2026). Information Theory of Code-Switching, Lexical-Gap Compensation and Monolingual Precision Equivalence in Multilingual Markets (Version 1.0.0), Chapter 2: The Information at a Switch Point: Surprisal, Word Length and Uniform Density. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-381 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026381,
  author    = {Fan, Yafu},
  title     = {Information Theory of Code-Switching, Lexical-Gap Compensation and Monolingual Precision Equivalence in Multilingual Markets},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book