Repository navigation
Stop the chain before a trailing title after a family comma (#623) - #635
Merged
Merged
Conversation
Assign's walk over a family comma's given part already reads the trailing title run (H5), but group bounded the particle chain there by `trailing_start`, the suffix peel alone, so the chain took the title into the particle's name first: `Smith, John van der Berg Prof.` read middle 'van der Berg Prof.' where `Smith, John Prof.` and `John van der Berg Prof.` read title 'Prof.'. At that site the bound is now `_pieces.trailing_run_start`, the run `tail_reading` takes with its titles, so the walk reads the title; P6 then reads the given part as though the title were absent (`Smith, Jan van Prof.` → family 'van Smith'). The bound is asked only where a particle stands past the chain's lead. Measured against 4d5631c: 17,340 role moves on an 18,480-text given-part grid (four configurations), all but 500 the title moving into the title field; H5 transparency broken on 392 texts against master's 3,048, none new. S2 and title-particle grids move only this class; the corpora, the case table and #625's grid do not move. Five gates exit 0 with a fix(#623) rule. Reference frames unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #635 +/- ##
=======================================
Coverage 99.02% 99.02%
=======================================
Files 46 46
Lines 4495 4511 +16
=======================================
+ Hits 4451 4467 +16
Misses 44 44 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The review found the bound's particle gate held by no test, two of its narrowings undoing readings master gives (a scan from the name's start rather than the chain's lead, and a test of single-token particles alone): rows `Smith, Freiherr von Berg Prof.` and `Smith, John von und zu Berg Prof.` now hold them, an empty-head row (`, Jan van Prof.`) the comma sweep asks for, and a frame test the gate's saving. Each mutation fails a test. Recorded rather than fixed: where `tail_reading`'s run and the walk disagree on a word behind a title (a numeral, a particle, a period- marked title-particle) the chain stops for a title the walk does not take; every such shape is garbage. Corrected the entry's causes (352 H1, 40 P5), its units and its frame claim; rules.md#H5 no longer says the bound is the walk's run; P6's interacts gains H5; three stale comments name the new bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The re-ask after the chain still decides readings: removed, it moves 400 given-part grid parses on master and here alike (`Smith, Freiherr van Berg X.Y.Z.` keeps given 'van Berg X.Y.Z.', as 1.4.0 reads it), and no test held it; a parity row does now. The entry's claim that it changed nothing, and its transparency example, read backwards, are corrected; the frame test's control says the bound is entered twice; the frame range is the sampled one; the follow-ups name #636 and #637. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The third review of #623 found the 134,720-pair transparency figures stated with no recipe; the entry gives it now. The re-ask also decides a main segment's run with a name piece inside it (`Freiherr van Berg Dr. X.Y.Z.`), a garbage shape no row holds; the frame ranges name both ends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
After a family comma, assign's walk over the given part already reads a trailing title run (H5), so
Smith, John Prof.reads title 'Prof.'. But group bounded the particle chain there bytrailing_start, which reads the suffix peel alone. So the chain took the title into the particle's name before the walk ever saw it.Smith, John van der Berg Prof.Smith, Jan van Prof.Smith, John Prof.Smith, John van der Berg Prof(bare)At that site the chain's bound is now
_pieces.trailing_run_start: the start of the runtail_readingtakes, titles included. The chain stops in front of the title and the walk reads it.Smith, John van der Berg VIkeeps middle 'van der Berg VI').Smith, Jan van Prof.attachesvanto the family, asSmith, Jan vandoes.trailing_startcall master made on every family-comma part.Measured (against 4d5631c, py3.11, import asserted on each side; recipes in decisions.md#H5)
lenient_comma_suffixes=False): 17,340 of 73,920 parses move a role (4,335 texts under each configuration), and no parse moves only a report. All but 500 parses (125 texts) put a trailing period-marked title into the title field.(Bob), Freiherr Mc Mc Prof. V, Jr.. With a third comma part the walk keepsVa name word (Issues with names in the format Last, First Middle Suffix where Suffix is I #144), soProf.lands in the middle name instead of the given. It is a name word either way.abduljoin taking the title (24 after a named family,Smith, abdul Dr.; 16 behind an empty head). rules.md#H5 already records this gap.Freiherr St John Smith MAstart: should a title that is also a particle open the name? #624's title-particle grid: 24. All are the same class.Freiherr St John Smith MAstart: should a title that is also a particle open the name? #624's comma-tail grid.fix(#623)rule in every ledger. On the 2.x surfaces the rule includes_ambiguities, for P6's report onSmith, Jan van Prof..Smith, John van der Berg282 → 284) and 4 with a suffix.Smith, John van der Berg Prof.310 → 360). An unmoved particle name ending in a suffix and a title pays 20 to 22.Smith, John Quincy221 → 213,Doe, John MA254 → 227).Tests
a_trailing_title_after_a_family_comma_stops_the_chainanda_particle_before_a_trailing_title_after_a_comma_attaches(fix(#623); 1.4.0 and 2.3.0 read middle 'van der Berg Prof.' / 'van Prof.'), and the bare-title contrasta_bare_title_word_after_a_comma_stays_in_the_chain(parity).fix(#623):Smith, Freiherr von Berg Prof.andSmith, John von und zu Berg Prof.hold the particle check. Two narrowings of it (scanning from the name's start instead of the chain's lead, and testing single-token particles only) had passed every test while undoing readings master gives., Jan van Prof.covers the empty head.the_chain_runs_again_where_its_merges_free_the_acronym(parity, from the second review): holds the re-ask after the chain (Smith, Freiherr van Berg X.Y.Z.).test_a_given_part_with_no_particle_skips_the_chain_bound: holds the particle check's frame saving. With the check removed,Smith, John Prof.costs 250 frames against 207.fix(#623)rows on the core and facade surfaces, the three new rules.md#H5 examples, and the field-sweep count.Review
Fix commit: pins the particle check, adds the empty-head row, and corrects the decisions entry's causes, units and frame claim. rules.md#H5 no longer says the bound is the walk's own run, P6's
interactsgains H5, and three stale comments now name the new bound.Recorded, not fixed. The bound is
tail_reading's run, and assign's walk reads the given part by its own predicates. Where they disagree about a word behind a title, the chain stops for a title the walk doesn't take. The cases are:Smith, John Mc Prof. VI)Smith, John van Prof. Mc)Smith, John van MA St.)All of these are garbage input. Over about 1.6 million generated rows, and over a 134,720-pair transparency grid, no text that is transparent to its title on master is broken on the branch.
Follow-ups found, outside this change:
John Smith, Jr., van der Berg Prof.): ShouldJohn Smith, Jr., van der Berg Prof.read title 'Prof.' asJohn Smith, Jr., Prof.does? #636.Smith, abdul Dr.): ShouldSmith, abdul Dr.read title 'Dr.' asSmith, abdul Ali Dr.andabdul Smith Dr.do? #637.The first-round claim that the re-ask after the chain changes no reading was wrong. Removing it moves 400 grid parses on master and on the branch alike. The new
parityrowSmith, Freiherr van Berg X.Y.Z.now holds it.Second fix commit: adds the re-ask row, corrects the transparency example (which had been read in the wrong direction), the frame test's control (the bound is entered twice) and the frame range, and names #636 and #637.
Third fix commit: gives the transparency grid's recipe, notes the re-ask's second path (garbage, no row), and names both ends of the frame ranges.
Docs
interactsgains P6, andimplementedgains_group.py.Smith, John van der Berg Prof.read title 'Prof.' asJohn van der Berg Prof.does? #623 entry, a SUPERSEDED IN PART note on Rethink the credential-run rule (S2): read a name's trailing run once, over name units, and bind it before any join #614's cross-reference, and Should S2's trailing read count the particle chain's units instead of merging a copy of them? #620's LEFT OPEN pointer now says this is settled.fix(#623)in all five, with the corpus claims re-recorded. Three broad 1.4.0 rules grew by the two new examples, with dated notes.Smith, John van der Berg Prof.read title 'Prof.' asJohn van der Berg Prof.does? #623.Closes #623
🤖 Generated with Claude Code