GRM-013
Hard constraint
layer: phrase
Countability-compatible quantifier
IF a quantifier conflicts with the noun’s countability, THEN replace the quantifier or recast the noun ELSE retain.
Why the rule exists
Quantifiers encode whether items are counted individually or measured as mass.
Condition
The rule fires when this evaluates true. Paths marked below must be present in the fact base; the engine reports the rest rather than guessing them.
- ALL
- noun.countability exists
- quantifier.compatible_with_noun eq false
Facts this rule reads
| Path | Source |
|---|---|
noun.countability |
You supply it |
quantifier.compatible_with_noun |
You supply it |
Then
- replace — target
quantifier - flag — target
noun
Else
- retain — target
current_text, No triggering condition is present.
LAKA
- Smallest sufficient intervention
- Yes
- Primary axes
Sources
-
English Grammar in Use — Raymond Murphy
Self-study explanations and practice for core English grammar. -
Practical English Usage — Michael Swan
Advanced grammar and usage reference for learners and teachers.
The raw rule record
Verbatim from 07-core-grammar-rules.json. Also available at /v1/rules/GRM-013.
{
"id": "GRM-013",
"name": "Countability-compatible quantifier",
"domain": "grammar",
"layer": "phrase",
"strength": "hard_constraint",
"human_logic": "IF a quantifier conflicts with the noun’s countability, THEN replace the quantifier or recast the noun ELSE retain.",
"when": {
"all": [
{
"path": "noun.countability",
"operator": "exists"
},
{
"path": "quantifier.compatible_with_noun",
"operator": "eq",
"value": false
}
]
},
"then": [
{
"action": "replace",
"target": "quantifier",
"choose_by": "noun.countability"
},
{
"action": "flag",
"target": "noun",
"message": "Check whether a domain-specific count sense is intended."
}
],
"else": [
{
"action": "retain",
"target": "current_text",
"reason": "No triggering condition is present."
}
],
"unless": [],
"because": "Quantifiers encode whether items are counted individually or measured as mass.",
"diagnostics": [],
"examples": {},
"source_ids": [
"BK-004",
"BK-010"
],
"laka": {
"smallest_sufficient_intervention": true,
"primary_axes": [
"scope",
"depth",
"magnitude",
"reversibility"
]
}
}
Other grammar rules
- GRM-001 Subject–verb number agreement IF a finite clause has an expressed subject AND neither quoted dialect nor an agreement exception applies, THEN align the finite verb with the subject in number ELSE retain. Hard constraint
- GRM-002 Compound subject agreement IF two or more singular subject heads are coordinated by AND, THEN use plural agreement ELSE evaluate the coordinator. Hard constraint
- GRM-003 Or/nor proximity agreement IF subject alternatives are joined by OR or NOR, THEN agree with the closest subject OR rewrite when the result sounds unstable ELSE retain. Context default
- GRM-004 Pronoun–antecedent agreement IF a pronoun refers to an antecedent AND the antecedent is known, THEN align person and number while respecting singular THEY ELSE request the missing referent. Hard constraint
- GRM-005 Unambiguous pronoun reference IF a pronoun has two or more plausible antecedents OR none, THEN replace it with the intended noun phrase ELSE retain. Hard constraint
- GRM-006 Stable grammatical person IF a passage shifts person without changing speaker, audience, or viewpoint, THEN restore the established person ELSE preserve the motivated shift. Context default
- GRM-007 Tense consistency within a time frame IF tense changes but event time and narrative viewpoint do not, THEN restore the established tense ELSE keep the meaningful time shift. Context default
- GRM-008 Sequence of tenses IF a dependent clause is temporally related to a governing clause, THEN select tense and aspect that express the intended ordering ELSE do not normalize automatically. Hard constraint