Methodology

The atomic unit of CE is the paragraph. Broad references to a previous paragraph are not allowed; sentences may refer to previous sentences within the same paragraph.

From that unit, rule and lexicon work can be treated as the approximation of an ideal set. The current version is a computable stand-in. The job is to close the gap.

Ideal CE

Imagine a space P of all possible paragraphs: every finite string of UTF-8 characters. Inside it sits a subset.

Define CEi ⊂ P, “ideal CE”, as the set of all paragraphs that are unambiguous in structure, sense, and reference: well-formed English that admits exactly one reading under the rule set, is grammatically correct, and uses only words in the ideal lexicon. If p ∈ CEi, the paragraph is correct; otherwise it is incorrect.

CEi is not directly observable, because the rules are not written down in advance. It is a Stewart set: a paragraph is in or out by “I know it when I see it” (Justice Potter Stewart, 1964). In some edge cases, readers disagree on whether a paragraph is correct; those paragraphs are in the “zone of subjectivity”.

Computable Approximations

To estimate CEi, we start with CE1.0.0: a small vocabulary v and a simple rule set r. From those we can decide, for every paragraph p, whether p is in CE1.0.0. That decision is computable; the set is no longer a Stewart set.

CE1.0.0 ≠ CEi. The work is to develop successive iterations CE1.0.x, for x ∈ {0, 1, 2, 3, …}, each with an improved rule set and vocabulary, so that CE1.0.x approaches CEi.

CE1.0.x overlaps CEi but also occupies space outside it. That exterior is over-acceptance: paragraphs the current rules pass that ideal CE would reject.

Venn diagram of all possible paragraphs P. The left circle is ideal CE (CEi); the right circle is the current implementation CE1.0.0. Their overlap is correct acceptance, illustrated by the paragraph “Dogs eat food.” The CEi-only region is false negatives (over-rejection). The CE1.0.0-only region is false positives (over-acceptance). Outside both circles, “The and dog.” is correctly rejected.
P is every possible paragraph. CEi is the unobservable ideal. CE1.0.0 is the current computable approximation. The mismatch is false positives and false negatives.

p ∈ CE1.0.x ⇔ f(p) = 1 for all f ∈ CE1.0.x’s rule set, where each rule returns pass (1) or fail (0).

FP = CE1.0.x − (CEi ∩ CE1.0.x) = false positives, over-acceptance (pass but incorrect)

FN = CEi − (CEi ∩ CE1.0.x) = false negatives, over-rejection (fail but correct)

Algorithm for Improvement

  1. Define a set T to hold test paragraphs. Start empty: T = ∅.
  2. Develop a test paragraph p. Test paragraphs can be sampled from large corpora. Candidates for p ∈ FP are easy to generate, because most of P is incorrect. It is also easy to generate p ∈ FN by choosing a paragraph that uses a word in CEi’s lexicon that is not yet in CE1.0.x.
  3. Check p against the current rule set.
    • If p fails only on the lexicon, add the word to v.
    • If p passes but is incorrect (p ∈ FP), add a rule to CE1.0.x that excludes it.
    • If p fails but is correct (p ∈ FN), weaken or delete an existing rule in CE1.0.x.
    Then check every paragraph already in T against the new rule set. The change must not regress the existing test set.
  4. Add p to T and return to step 2.

CGEL Section Records

The main source of grammar rules for CE is The Cambridge Grammar of the English Language (CGEL; Huddleston and Pullum, 2002). Each of its 757 leaf sections (sections with no subsections, in chapters 1 to 20, listed on the CGL Rules page) is transcribed into one record: a structured file that states what the section contributes to CE in a form a program can check. Text in a parent section before its first subsection gets a record under the parent’s number. Records are stored one per file, as JSON-LD, in cgl/records/.

A record plays the part that a formal statement plays in Lean, a proof assistant in which each mathematical theorem is written in a formal language and checked by a program. Each section is encoded separately, so agents can examine one section at a time and confirm that its encoding is correct.

A record keeps only material that bears on which paragraphs are CE: the attributes a section defines, the constructions it describes, and the examples it marks as grammatical or ungrammatical. Historical notes, discussion of alternative analyses, and comparisons with other grammars are left out.

Record Fields

Field Content
@id cgel: followed by the section number, for example cgel:5.19.2.
title, pdf_page The section title and first page, as in the CGEL hierarchy file.
status pending: not yet encoded or not yet reviewed. encoded: the section defines attributes or rules, and the record has passed every check below. no-rule: the section contains nothing that changes which paragraphs are CE, such as a section on pronunciation; reason states why in one sentence. Every leaf section has a record, so the number of sections not yet examined is always known.
attributes Each attribute the section defines. An attribute is a mark written inside {…} in CE markup (markup specification, §4.2), such as the label :Subj or the flag +each. Each entry gives the attribute string, its kind (label or flag), its meaning in one sentence, the attributes it excludes, the pattern of nodes it may attach to (attaches_to), and good and bad examples of its placement.
rules Each rule the section states, with its fields in the next table.
Rule field Content
@id The record’s @id followed by /r and a number, for example cgel:5.19.2/r1.
kind require: every match of the pattern must carry one of the listed attributes on the named node, and an unmarked match fails. forbid: a match of the pattern, or a match that carries a listed attribute, is not CE.
pattern The grammatical construction the rule applies to.
where Conditions on nodes bound in the pattern, such as number, person, or a specific word.
requires or forbids The node and attributes the rule concerns. A forbid rule with no attributes rejects the construction outright.
ce_rule The CE-nnnn number of the linter check that implements the rule, or null until one exists.
good, bad Example paragraphs in CE markup, each with its expected verdict. A bad example also gives the code expected to fire: the CE-nnnn number once the rule is implemented, and the rule’s own @id before then.

Patterns

A pattern is a tree in CGELBank’s bracket notation, which writes each node as its category followed by its dependents, each introduced by its function: (Clause :Subj (NP) :Head (VP)). CGELBank is the treebank (a corpus of sentences annotated with their parse trees) that uses CGEL’s categories and functions. In a pattern, $name binds a node so that attributes and conditions can refer to it, ... matches any further dependents, and a node written without dependents matches any subtree of its category. The pattern notation and the condition language are provisional, and no matcher implements them yet.

Examples

Each example is one CE markup paragraph. Every rule and every attribute has at least one good example and one bad example. Each bad example differs from one good example of the same rule or attribute by the smallest change that reverses the verdict, so the pair shows the boundary the rule draws. Every example becomes a test paragraph in T.

Examples are written for the record and are not copied from CGEL. The CGEL transcription is private and the records are public, so a record that follows one of CGEL’s numbered examples cites it in cgel_example instead of quoting it.

Example Record

This record shows the format. It was written for this page and has not been checked against the section it names.

{
  "@id": "cgel:5.19.2",
  "title": "Distributive and non-distributive predicatives in non-quantificational constructions",
  "pdf_page": 530,
  "status": "pending",
  "attributes": [
    {
      "attr": "+each",
      "kind": "flag",
      "meaning": "Each member of the plural phrase has the property on its own.",
      "excludes": ["+together"],
      "attaches_to": { "pattern": "(NP $x)", "where": ["number($x) = plural"] },
      "good": [
        { "text": "[The three suitcases]{+each} are too heavy{weight} for the cart.",
          "verdict": "accept", "cgel_example": null }
      ],
      "bad": [
        { "text": "[The suitcase]{+each} is too heavy{weight} for the cart.",
          "verdict": "reject", "code": "GR-3", "cgel_example": null }
      ]
    },
    {
      "attr": "+together",
      "kind": "flag",
      "meaning": "The members of the plural phrase have the property as a group.",
      "excludes": ["+each"],
      "attaches_to": { "pattern": "(NP $x)", "where": ["number($x) = plural"] },
      "good": [
        { "text": "[The three suitcases]{+together} are too heavy{weight} for the cart.",
          "verdict": "accept", "cgel_example": null }
      ],
      "bad": [
        { "text": "[The suitcase]{+together} is too heavy{weight} for the cart.",
          "verdict": "reject", "code": "GR-3", "cgel_example": null }
      ]
    }
  ],
  "rules": [
    {
      "@id": "cgel:5.19.2/r1",
      "kind": "require",
      "pattern": "(Clause :Subj (NP $subj) :Head (VP :Head (V) :PredComp (AdjP) ...))",
      "where": ["number($subj) = plural"],
      "requires": { "node": "$subj", "one_of": ["+each", "+together"] },
      "ce_rule": null,
      "good": [
        { "text": "[The three suitcases]{+each} are too heavy{weight} for the cart.",
          "verdict": "accept", "cgel_example": null }
      ],
      "bad": [
        { "text": "The three suitcases are too heavy{weight} for the cart.",
          "verdict": "reject", "code": "cgel:5.19.2/r1", "cgel_example": null }
      ]
    }
  ]
}

Verification

A program runs these checks on every record on every commit:

  1. Schema. The record has every required field, and its @id, title, and pdf_page match the CGEL hierarchy file.
  2. Inventory. Every attribute used in a pattern or an example is defined by exactly one record. The label and flag sets of constraint CM-10 in the markup specification become the set of attributes defined by records.
  3. Examples. Every good example passes the syntax and lexicon checks of the markup specification. Once ce_rule is set, the linter gives every example its stated verdict, and every bad example fails with its stated code.
  4. Pairs. Every bad example has a good example in the same rule or attribute, and the token difference between the two is reported for review.
  5. Copying. No example shares a run of eight or more consecutive words with the CGEL transcription.

No program can check that a record says what its section says. That is checked by review: an agent that did not write the record reads the section and the record and answers four questions.

  1. Does every attribute, pattern, and rule follow from the section?
  2. Does the section state a constraint, or mark an example grammatical or ungrammatical, that the record omits?
  3. Is every good example grammatical, and every bad example ungrammatical, by the section’s account?
  4. Does any pattern match constructions that the section does not cover?

When the reviewer and the writer disagree, a person decides, and the record stays pending until then. In Lean, the checker establishes that a proof is correct. Here, the checks establish that a record is well-formed and that the linter agrees with its examples; whether the record matches CGEL rests on review.

Measuring Accuracy

Closeness of CE1.0.x to CEi is measured empirically as the rates of false negatives and false positives on a held-out set T₂ of wild-English paragraphs that are not yet in T.

If T₂ has 100 correct paragraphs and 100 incorrect paragraphs, we might see 13% FN and 10% FP, which is (87% + 90%) / 2 = 88.5% accurate.

The goal is a CE1.0.x that is as close as possible to 100% on any test set T. That is equivalent to defining CEi objectively rather than subjectively.

With such a rule set and lexicon, noah can deterministically decide whether any paragraph p is CE.

Grammaticality judgments near the boundary will eventually vary speaker by speaker; that is a well-established fact of natural language. Past a certain percentage, subjectivity makes it impossible to measure whether a paragraph is correct. In that zone around the edge of CEi, the boundary is fuzzy, or probabilistic, with disagreement even among expert native speakers. CE still makes a sharp, explicit determination there: a necessary over-specification. That counts as success in defining CE.

Profiler Evaluation

The rule set is measured against CEi above. The planned profiler, noah profile, makes a different claim: that its score tracks how readable a text is (training signal). That claim is tested against human readers. The study below is planned, and no results exist yet. It will be preregistered: the hypotheses, materials, and analysis are published before any data is collected.

Materials

The source texts are at least 200 passages of 150 to 300 words, written by current language models in response to prompts in three domains: chat answers, technical explanations, and persuasive essays, the domains Clark, Martin, and Mahowald studied [20]. Each passage is prepared in four versions.

Version How it is made Why it is included
A. Original The model output, unchanged. Baseline.
B. Profiler revision A model revises the passage using the profiler’s report, until the profiler flags nothing or five passes have run. The version under test.
C. Plain revision The same model revises the passage with the instruction “make this easier to read”, for the same number of passes, without the profiler. Separates the effect of the profiler from the effect of any revision.
D. Human edit A professional editor revises the passage with the same instruction as C. An upper reference point.

Every revision must keep the meaning of the original. Two annotators who do not know which version is which check each revision against the original, and a passage is dropped from the study if any of its revisions adds, removes, or changes a claim. The share of passages dropped for each version is reported, because a revision method that often changes meaning has failed even if its survivors read well.

Measures

Readers are recruited through a research participant platform and include native and non-native readers of English, reported separately. No reader sees two versions of the same passage in the same task, except in the paired comparison, and no reader knows which version came from which method.

Hypotheses

  1. Readers prefer version B to version A.
  2. Readers prefer version B to version C. This is the test of the profiler itself; without it, a gain over A could come from revising at all.
  3. Across all versions, a better profiler score predicts higher preference, higher ratings, and shorter reading times.
  4. Comprehension accuracy for B is not lower than for A.

Hypothesis 3 decides whether the score can serve as a training signal. If the score does not predict what readers prefer, the checks that fail to predict it are removed or reweighted, and the study is run again.

Sample Size and Analysis

With 194 passages, each judged in every pairing, the study detects a preference of 60 percent against the 50 percent expected by chance, and a correlation of 0.2 between profiler score and preference, each with 80 percent probability at the conventional 5 percent significance level. Each passage pair is judged by at least three readers. Preferences, ratings, and reading times are analyzed with mixed-effects models, which account for the fact that some readers and some passages are harder than others across every version.

AI Detectors

Every version is also run through commercial AI-text detectors, and the detection rates are reported whatever they are. They are a secondary diagnostic, not an outcome of the study. A detector measures statistical features of the text, not its readability: paraphrasing tools lower detection rates while often making text worse, and seven detectors misclassified, on average, 61 percent of essays by non-native English writers as machine-written [28]. CE’s fixed spelling and regular grammar may also make text easier to detect while making it easier to read. The study asks whether readers find the text better, not whether a classifier can identify its source.

Contributing to the Next Version of CE

If you find an example of a false positive or false negative, please submit a pull request that includes:

We will try to incorporate every pull request judged sound into the next version of CE.

Every proposed rule must run inside noah check and pass the existing regression suite, which is how later versions move steadily toward the best possible rule set for English. The benefits page makes the case for linguists.

Back to Canonical English