Linting Precision and Clarity
Run a four-tier pass over the text. Each tier uses a different detection method — don't try to catch everything with one read-through.
Tier 1 (Lexical): Scan word/phrase lists — confusables, circumlocution phrases, register markers
Tier 2 (Structural): Parse sentence trees — garden-path, ambiguous attachment, dangling modifiers
Tier 3 (Statistical): Compute ratios/composites — cognitive load score, lexical density
Tier 4 (Mechanical): Apply deterministic rules — subject-verb agreement, tense, comma splices
Flag each issue with: category → quoted span → why it fails → fix.
Progress:
- Tier 4 pass (mechanical, cheapest, do first): comma splices, run-ons, subject-verb disagreement, tense shifts
- Tier 1 pass (lexical): confusables/malapropisms, circumlocution, register mismatch
- Tier 2 pass (structural): garden-path, syntactic ambiguity, pronoun-antecedent ambiguity, dangling modifiers, faulty parallelism, nested clauses
- Tier 3 pass (statistical composite): compute cognitive-load inputs per sentence, flag high-friction sentences
- Consolidate findings, deduplicate overlapping flags, rank by severity
Tier 1 — Lexical (word lists)
Check against known confusable pairs (affect/effect, imply/infer, comprise/compose), wordy-phrase lists ("in order to" → "to", "conduct an investigation of" → "investigate"), and register-marker clashes (sudden slang in formal text, or vice versa).
Tier 2 — Structural (parse-tree patterns)
For each sentence, identify:
- Does the initial parse plausibly fail and require backtracking? → garden-path
- Can a prepositional phrase or relative clause attach to more than one head? → syntactic/attachment ambiguity
- Do pronouns (it, they, this, which) have 2+ plausible antecedents within the current/prior sentence? → pronoun-antecedent ambiguity
- Is a modifying phrase adjacent to the wrong noun/verb? → dangling/misplaced modifier
- Does a list or comparison break grammatical form (e.g., gerund + infinitive mixed)? → faulty parallelism
Tier 3 — Statistical (cognitive-load composite)
Compute these six inputs per sentence; flag "high cognitive friction" only when the composite crosses threshold (not from a single input alone, unless extreme):
- Subject-verb distance (word count between subject and main verb)
- Parse depth (max nesting level of embedded/dependent clauses)
- Pronoun ambiguity count (from Tier 2, fed in as a numeric input)
- Lexical density (content words ÷ total words)
- Nominalization count (zombie nouns per sentence)
- Front-load flag (binary: does a subordinate clause of >8 words precede the main subject?)
Note: attachment ambiguity and noun/verb homograph garden-path signals are Tier 2 outputs, not composite inputs — don't double-count them here.
Tier 4 — Mechanical (deterministic syntax/morphology)
Apply rule-based checks: comma splices (two independent clauses joined by comma alone), subject-verb number agreement (watch for intervening prepositional phrases), tense consistency across a passage, run-on/fused sentences (no conjunction or punctuation between independent clauses).
Example 1: Input: "The box of chocolates are on the table, she walked to the store and bought milk she was tired after." Output:
- Tier 4, subject-verb disagreement: "box ... are" → "box" is singular head noun, "of chocolates" is a distractor PP → fix: "The box of chocolates is on the table."
- Tier 4, comma splice / run-on: "...table, she walked..." and "...milk she was tired..." are three independent clauses fused with only a comma or nothing → fix: split into separate sentences or use semicolons/conjunctions.
Example 2: Input: "The old man the boat." Output:
- Tier 2, garden-path sentence: reader initially parses "old man" as noun phrase (subject), then has no verb; "man" is actually the verb ("to man a boat") and "old" is the subject noun. Fix: rewrite as "The elderly people operate the boat" or add a comma/context to block the misread: "The old, they man the boat."
Example 3: Input: "After reviewing the quarterly sales figures that the regional managers had submitted following the holiday season, the report was finalized." Output:
- Tier 2/3, front-loaded syntax: 20-word subordinate clause precedes the main subject "the report," forcing working-memory load. Front-load flag = 1.
- Tier 3, high cognitive friction: subject-verb distance long, parse depth 2+ nested clauses. Composite likely crosses threshold.
- Fix: "The report was finalized after reviewing the quarterly sales figures the regional managers submitted following the holiday season." Or better, assign an agent: "The team finalized the report after reviewing..."
Example 4: Input: "We conducted an investigation of the matter in order to ascertain the underlying cause." Output:
- Tier 1/Tier 2(flow), nominalization + circumlocution: "conducted an investigation of" → "investigated"; "in order to ascertain" → "to find". Fix: "We investigated the matter to find the underlying cause."
- Always quote the exact offending span — never describe an issue without evidence.
- Run Tier 4 first; mechanical errors are cheap to catch and can mask real structural issues until fixed.
- Don't flag "high cognitive friction" from a single statistical input in isolation — it's a composite judgment across the six named inputs.
- Keep Tier 2 and Tier 3 outputs separate: attachment ambiguity and garden-path homographs are Tier 2 phenomena fed nowhere into the Tier 3 composite.
- When a fix is suggested, preserve the author's voice/register — don't over-correct casual text into stiff formal prose.
- Prioritize fixes that reduce reader backtracking (garden-path, dangling modifiers, ambiguous pronouns) over stylistic polish.
- Don't conflate nominalization (Tier 2 flow issue) with circumlocution (Tier 1 lexical issue) — they overlap in effect but are detected differently; note both if both apply.
- Don't call every long sentence "high cognitive friction" — length alone isn't one of the six composite inputs; measure parse depth and subject-verb distance instead.
- Don't miss comma splices hiding inside otherwise fluent, confident-sounding prose — mechanical checks must run independent of perceived writing quality.
- Don't double-flag the same ambiguity in both Tier 2 and Tier 3 — attachment ambiguity and homograph-driven garden-paths belong only in Tier 2.
- Don't suggest a fix that eliminates style (e.g., intentional sentence fragments for effect) when no actual comprehension failure exists.