Repository navigation
Conversation
…it cells A table a converter flattened with one row has too few rows to show glued numbers or dates, but its header row does: two or more header cells closed by a unit in brackets and run into the next cell (資本金(千円)主要な事業の内容, 割合(%)関係内容). Such a sentence is measured cell by cell; a unit named before a particle or a comma is left alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A one-row table that a converter flattened into a sentence (the 関係会社の状況 table of a securities report: header cells, then a single company's row, then the note) has too few rows to show glued numbers, glued dates or bracketed figure cells, so max-sentence-length measured it as one long sentence. Its header row still shows what it is: two or more header cells closed by a unit in brackets and run straight into the next cell (資本金(千円)主要な事業の内容…割合(%)関係内容). Such a sentence is now measured cell by cell (
unitHeaderPartsinsentence-parts.ts, used only by max-sentence-length'spartsOf), and a long note after the table is still reported.A unit named in prose before a particle or a comma (金額(千円)は、比率(%)、) is not a header cell and is left alone. Rule YAML (ja and en) describes the new table shape.
Items to Confirm / Review
isFlattenedTablealready uses for header cells; the new part is only the lookahead that the next character opens another cell (kanji, katakana or a bracket). Over the Japanese corpus, every sentence holding two such unit headers was a flattened table.isFlattenedTable(shared by other rules) is not changed; only max-sentence-length reads the new shape.yarn corpusandyarn plantedunchanged.Refs #1334
🤖 Generated with Claude Code
work in lab