Where Do Exceptions in Grammar Rules Come From

    This article explains why apparent exceptions appear in both natural language and software systems: rules are layered, historical, and context-dependent. Using examples such as English irregular verbs and plurals, vowel remnants after lost endings, and literary versus colloquial Chinese readings, it maps these patterns to three common software cases—compatibility aliases, dual writes during data migration, and multi-environment configuration overrides. It then outlines a practical methodology for managing exceptions through layered modeling, explicit metadata, scenario routing, observability, regression tests, and versioned retirement.

    1. The Shared Structure: Why Exceptions Keep Appearing

    Whether in natural language or software systems, the moment an observer feels that “there is an exception” usually does not mean the rule has failed. It means the observer is using a single layer of rules to explain the result of multiple layers stacked together.

    Two kinds of phenomena in the source material are typical. English verbs usually form the past tense by adding -ed at the end, yet sing becomes sang and go becomes went; nouns usually form the plural with -s, yet we have feet, mice, and oxen. In Chinese, the same character can have two readings—for example, 血 is read xuè or xiě, 薄 is read bó or báo, and 剥 is read bō or bāo. The common explanation is that the former leans toward written language and compound words, while the latter leans toward spoken language.

    Abstracting these phenomena yields three general conclusions:

    1. Rules are layered. The surface form you see is a projection of lower-level constraints after several transformations.
    2. Rules are historical. Mechanisms introduced at different stages accumulate on the same object, and a new layer does not always erase the old one.
    3. Rules diverge by context. The same object takes different branches in different usage domains (written vs. spoken, online vs. offline, new vs. old). Looking at only one domain makes the other look like an exception.

    These three conclusions are exactly the cause of many hard-to-diagnose problems in software engineering.

    2. The Explanatory Framework from Language

    2.1 Vowel Alternation: Remnants of Lower-Level Rules

    Sing/sang/sung belongs to an ancient system of internal inflection in the Germanic languages, usually called vowel alternation: tense differences are expressed by changing the stem vowel rather than adding a suffix. Go/went is a case where forms from different origins were integrated into the same grammatical slot, a common result of morphological suppletion. These phenomena show that as long as the lower-level mechanism is stable enough, the old mechanism survives in high-frequency words even after surface-level affixation becomes the norm.

    2.2 Traces of Sound Influence: Feet, Mice, and Oxen

    Feet and mice trace back to a vowel change in Old English: a component at the end of the word affected the stem vowel, and then that ending was lost, leaving only the altered vowel. The -en in oxen is a remnant of a common Old English plural ending. The key mechanism here is “the trigger disappears, the result remains.” This is common in linguistics and equally common in software systems: the input that triggered a branch no longer appears, but the data format written by that branch still remains in existing data.

    2.3 Literary vs. Colloquial Readings: Layers from Different Periods

    The “one character, two readings” phenomenon in Chinese is usually summarized as literary versus colloquial reading. The literary reading is more influenced by successive standard pronunciations, while the colloquial reading preserves older local forms. The two layers stack, producing two readings for the same character and a relatively stable division of labor between written compounds and spoken expressions. Its methodological value is this: when you separate the two layers, each has its own rules; when you mix them together, it becomes an “exception.”

    3. Mapping to Software Systems: Three Common Pseudo-Exceptions

    3.1 Morphological Remnants Caused by Compatibility Layers

    An interface may have had no version number in an early release, with field naming inconsistent with later conventions. To stay compatible with existing callers, the new version can only keep the old fields and add alias fields. At this point, “two spellings for the same concept” is not a design mistake but the coexistence of historical layers. The fix is not to eliminate one layer but to declare the layers explicitly:

    1. contract:
    2. canonical: user_profile # current standard layer
    3. aliases: [userInfo, profile] # historical compatibility layer
    4. deprecated_since: v3
    5. remove_after: v5

    The key is to turn implicit conventions into explicit metadata, giving each exception a name, an owner layer, and a retirement date.

    3.2 Dual Writes and Backfills Caused by Data Migration

    Storage upgrades commonly involve dual writes and asynchronous backfills. During the window before the backfill completes, the read path may hit the old format while the write path already produces the new format, so the same field carries two semantics. This is highly isomorphic to “the trigger disappears, the result remains.” Engineering practice should achieve three things: the read path explicitly identifies the format version; the backfill task exposes observable progress; and unrecognized formats go to isolation and alerting rather than silent fallback.

    1. read(value):
    2. if value.schema == 1: return migrate_v1_to_v2(value)
    3. if value.schema == 2: return value
    4. else: quarantine(value); alert("unknown schema")

    3.3 Context Divergence Caused by Multi-Environment Configuration

    The same code behaving differently in development, test, and production is usually not random but the result of configuration layers that are not made explicit: defaults, environment variables, startup parameters, and remote dynamic configuration override one another by priority, and the final effective value is determined by override order. This matches the “layered accumulation” of literary vs. colloquial readings. The recommendation is to print the effective result as an auditable snapshot that includes the source and priority of each item, turning troubleshooting from guesswork into table lookup.

    4. Methodology: Treating Exceptions as an Engineering Concern

    1. Layered modeling. Define the standard layer, compatibility layer, and historical layer clearly, and prohibit implicit cross-layer references.
    2. Explicit annotation. Record the source, impact scope, owner, and retirement condition for every exception.
    3. Scenario routing. Express branches explicitly through configuration or policy instead of scattering conditionals across business code.
    4. Observability. Count and alert on unknown formats, unknown values, and override conflicts so exceptions can be discovered.
    5. Regression testing. Build a minimal reproduction case for every known exception to prevent fixes from introducing new deviations.
    6. Evolution cadence. Retire exceptions through a versioned process—dual write first, then switch reads, then clean up—avoiding one-shot replacement.

    When implementing this in the cloud, you can use general-purpose capability categories to carry these steps: object storage holds historical data with version markers, message queues drive asynchronous backfills, container platforms host versioned releases, and logging services plus monitoring and alerting handle exception counts and trend observation. These are all common industry capability categories and do not involve any vendor-specific implementation details.

    5. Common Misjudgments and Corrections

    • Misjudgment 1: Discarding an exception as noise. Correction: first confirm whether a layer of rules is missing, then decide whether to discard it.
    • Misjudgment 2: Forcing a unified rule over the historical layer. Correction: set a retirement plan for the historical layer instead of erasing it immediately.
    • Misjudgment 3: Validating in only one environment. Correction: include environment differences in the configuration snapshot and the test case matrix.
    • Misjudgment 4: An exception has no owner. Correction: every exception must have an owner and a review cycle.

    6. Conclusion

    An “exception” is usually the inevitable product of layered and historical accumulation. Vowel alternation, vowel remnants after lost endings, and literary vs. colloquial readings in language follow the same explanatory logic as compatibility aliases, migration dual writes, and multi-environment overrides in software. Make the layers explicit, annotate the sources, and turn retirement into a process, and exceptions shift from points of debate to a manageable technical debt list—improving the system’s explainability and evolvability along the way.