Skip to content

feat: section-reflection-ending reports a document where most sections close on a personal reflection - #2982

Merged
isamu merged 4 commits into
mainfrom
feat/section-reflection-ending
Nov 30, 2026
Merged

isamu merged 4 commits into
mainfrom
feat/section-reflection-ending

Conversation

@isamu

@isamu isamu commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

A new rule in the ai-tells group, section-reflection-ending: a document where most sections close on a personal reflection (〜と思います, 〜と感じています, 〜かもしれない, "I think ...", "I feel ..."). One reflective closing is ordinary in a human essay or report, so the signal is the share of sections whose closing sentence (the last sentence of the section's last paragraph) is a reflection, and only documents with enough sections that hold a paragraph are measured (min_sections).

  • The ending words are in lexicons (lang-ja / lang-en section-reflection-ending.yaml): ja by sentence end, en by sentence opening ("I think ...") or end ("..., I think."). The detector only knows how to combine them.
  • Its own rule id, as closing-exhortation and section-length-uniformity are, rather than a signal inside ai-tell, whose weights score phrases wherever they occur.
  • Status and severity were placed by yarn rules:measure --apply: it fires on no pinned human document in any group, so it backs no off_for and the rule has none (it runs in every genre of use_for). Only this rule's entry of the measurement is kept (the run's unrelated rewrites were discarded); human-shares.ts is regenerated from it.
  • Judged corpus: no finding judged correct is lost. New findings only on ai-ja-essay-morning-walk (lines 13, 21, 27), the sentences the corpus entry names.

Refs #2010
Refs #2036

Items to Confirm / Review

  • The levels (strict 40, normal 50, relaxed 67, in percent of sections) were set by hand, just above the highest share measured on human documents (the pinned corpus and the human documents of isamu/chaff-corpus): rules:measure does not place limits.
  • chaff-corpus: ai-ja-report-trade-show — ai-tell #2036 (ai-ja-report-trade-show) is not caught: there the reflection is mostly mid-paragraph, and only one section's closing sentence is one; the share of sections whose closing paragraph contains a reflection overlaps with human blog posts in the judged corpus, so that variant was not taken. That case stays for reading (the lead's call).
  • The corpus entries are filed under ai-tell, so the runner lists the morning-walk lines as new findings of this rule rather than as missed-found; the corpus entries may want to name this rule.
  • Not added to ai-generated-composite's from list, so the composite does not move; whether it should count there is left for a later measurement.
  • かもしれない / 思っている (without と) are counted as reflections; check that reading.
  • yarn corpus shows changes on cached (fetched) documents that do not involve this rule; not accepted.

🤖 Generated with Claude Code
work in lab

…sections close on a personal reflection

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
isamu and others added 3 commits November 30, 2026 07:39
…not back

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…guide-screen gates

Adds its not_planted bench entry, the new zero rows in the paired ai-samples
expectations, the one more compared sign in the ai-score guide screens, and a
reflective section closing in each limit fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
@isamu
isamu merged commit 0e0c55c into main Nov 30, 2026
27 of 40 checks passed
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