Skip to content

fix: repeated-sentence-ending skips a paragraph that opens with a flattened table - #2993

Open
isamu wants to merge 2 commits into
mainfrom
fix/repeated-sentence-ending-flattened-table-block
Open

isamu wants to merge 2 commits into
mainfrom
fix/repeated-sentence-ending-flattened-table-block

Conversation

@isamu

@isamu isamu commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

repeated-sentence-ending read a flattened table (a securities report's table of subsidiaries: a header row of cells closed by units, then each row's cells and its relationship text) as a run of three prose sentences ending in 〜おります. The rule already lets a flattened sentence break a run, but here only the header row is recognised as a table; the rows after it are cut into "sentences" at the stops inside their cells and still meet the previous row's text.

A paragraph whose first sentence is a flattened table now is not read at all: what follows the header row in it is the table's rows.

Closes #1333

Items to Confirm / Review

  • Narrowed on purpose to a paragraph that opens with the table. A first version skipped any paragraph that is a flattened table anywhere in it (the block test repeated-sentence-head uses); on the judged corpus that lost judged-correct findings in long report paragraphs that hold a glued-number table in the middle of real prose, so it was dropped.
  • not_flagged is updated in both languages.

Approach

  • endingRun filters out paragraphs whose first sentence isFlattenedTable.
  • Test (self-written, same shape: header row, two rows, a note) in test/test_ja_clause_shape.ts.
  • Judged chaff-corpus run (all documents, against main): the target false positive is gone; no judged-correct finding of repeated-sentence-ending is lost and no new finding appears. yarn corpus and yarn planted unchanged.

🤖 Generated with Claude Code
work in lab

isamu and others added 2 commits November 30, 2026 07:55
…able

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

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.

chaff-corpus: edinet-bench-e04296-s100syhh — repeated-sentence-ending

1 participant