Skip to content

fix: max-sentence-length counts each title listed after a colon as one word - #2987

Merged
isamu merged 3 commits into
mainfrom
fix/max-sentence-length-title-list
Nov 30, 2026
Merged

isamu merged 3 commits into
mainfrom
fix/max-sentence-length-title-list

Conversation

@isamu

@isamu isamu commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

max-sentence-length measured a sentence that is mostly a catalogue's list of titles after a colon ("New books include: The lighthouse keeper of the northern bay, A short history of tea in the old ports, …") word by word, so the titles' own words made it "too long".

Three or more comma-separated titles after a colon, each written in sentence case (a capital first word and a lower-case content word after it), now count one word each, the way the rule already counts an author list or a run of quoted terms. The run stops at the first item that is not such a title, so prose going on after a colon is measured as before, and so is a list of names in title case (tested). The rule's not_flagged text says so in Japanese and English.

Items to Confirm / Review

  • Names in title case are deliberately left counted: the judged corpus holds a correct finding on a sentence listing many tribes' names after a colon. A first version that shortened any capitalised items lost it; the second commit narrows to sentence-case titles and keeps it (checked on that document), and restores the corpus count it had moved.
  • The shape is read from capitals, commas and word length only (no tagger).
  • Tests and examples are self-written (the document is hash-only).

Closes #2959

🤖 Generated with Claude Code
work in lab

isamu and others added 3 commits November 30, 2026 07:50
…e word

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ames in title case

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@isamu isamu mentioned this pull request Nov 30, 2026
@isamu
isamu merged commit 2b61585 into main Nov 30, 2026
24 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.

chaff-corpus: loc-signal-new-online-2026-07 — max-sentence-length

1 participant