Skip to content

feat: inline-triad reports three short phrases strung on commas with no and, again and again - #2992

Open
isamu wants to merge 1 commit into
mainfrom
feat/inline-triad-density
Open

isamu wants to merge 1 commit into
mainfrom
feat/inline-triad-density

Conversation

@isamu

@isamu isamu commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

A new English rule, inline-triad (group ai-tells): three short phrases strung on commas with no "and" / "or" ("the table, the conversation, the feeling of being cared for"; "I was chopping, stirring, paying attention"; "simple things: scrambled eggs, roasted vegetables, a basic tomato soup"), counted per 1000 words, reported only when a document of at least the density floor holds three or more of them.

Why a new rule id rather than a signal in rule-of-three: rule-of-three measures the share of bullet lists with three items; this is a per-sentence shape measured as a density, with its own detector and word list. rule-of-three's own not_flagged already says inline three-word lists are left out because human documents write them more often.

What is counted and why: a prototype over the judged corpus showed that triads joined by "and" (fast, simple, and reliable) do not separate generated from human prose (government and press writing is full of them), so they are left out. The asyndetic shape (no conjunction, parallel items or a list opened by a colon) is what the generated essay repeats. Left out as well: items holding a figure, capitalised names/titles/places (Jane Roe, Director, GDS), one word said again (old, old, old), runs of four or more, runs inside list items and quotation marks. The words that open a clause rather than an item, the conjunctions, the determiners and the suffix that make two items parallel are in packages/lang-en/lexicons/inline-triad.yaml (read through extra_word_lists, so they are not "flagged phrases").

Placement: started experimental and placed by yarn rules:measure --apply, which made it stable (normal): it reports on none of the pinned human English documents in any group. Only the inline-triad entries of that measurement are committed (rules-measure.json, human-shares.ts); the run's unrelated rewrites (other rules, fetched-cache drift) were discarded.

Judged corpus (isamu/chaff-corpus, run with this checkout): the rule fires on one document only, ai-en-essay-learning-to-cook, at lines 11, 15, 21 and 23 — the four asyndetic triads of the essay, each read and judged right (they are the miss filed there under rule-of-three). No other document gets an inline-triad finding; correct lost is zero for every rule.

Japanese: not built. The judged Japanese AI documents do not show the shape (one parallel run in the whole set), and 、 in Japanese is too ambiguous to read it without a measured signal, so the rule is languages: [en]. Messages and names are in both languages.

Refs #1961
Refs #1951

Items to Confirm / Review

  • The four essay findings are new findings on a fully judged document: they need verdicts in chaff-corpus (correct, in my reading), and the rule-of-three miss at line 23 can then be retired.
  • chaff-corpus: ai-en-email-intro-two-people — rule-of-three #1951 (ai-en-email-intro-two-people, "messy, slow, and ended up working really well") is not caught and should be marked needs reading: the document is below the density floor, has one triad, and that triad is joined with "and", which the measurement does not back as a signal.
  • test/test_rule_rewrite.ts lists inline-triad among word lists that are not flagged phrases; test/fixtures/limits/en.md gets three runs so the limit-agreement test exercises the rule.
  • The guide screen in ai-sounding-examples.md now names the rule under "not compared (no human baseline)" for blog: the measured blog group has fewer documents than ai-score needs.
  • The density limit (normal 3 per 1000 words) and the minimum of three runs are set in the rule; no pinned human document reaches the minimum, so the measurement does not pin the limit more tightly than that.

🤖 Generated with Claude Code
work in lab

…no and, again and again

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant