Skip to content

Collect the 3.2 prose sweep's follow-ups - #1537

Merged
derek73 merged 3 commits into
masterfrom
docs/3.2-sweep-follow-ups
Nov 22, 2026
Merged

derek73 merged 3 commits into
masterfrom
docs/3.2-sweep-follow-ups

Conversation

@derek73

@derek73 derek73 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

The 3.2 prose sweep's follow-up: what parts A, B and C each left for another part. No reading moves, and tools/differential/snapshot.jsonl is byte-identical. The PR stays clear of the files #1535 edits.

Changes

  1. rules/C6's Then line. It said "an unlisted all-caps word joins…", though since Read an unlisted mixed-case credential after a comma, such as MRes or AuD #1517 it means the caps shape, mixed-case credentials included. It now says "an unlisted word in the caps shape (S9), written in capitals or in a credential's mixed case, joins…".

    • The quote in nameparser/_pipeline/_comma.py (the names >= 2 loop) moves with it, and gains its clause line and decisions/C6 (#564, #1517) pointer. test_doc_citations finds no other quote of the line.
    • The mixed-case Then bullet now carries what the widened Then does not: the spelling is the caps shape's only after a comma, and a word the shape refuses stays a name word.
    • C12 and C16 were already aligned by Sweep the contributor docs for the 3.2 release #1532.
  2. Three measurements move out of code comments into dated decisions/parse-cost bullets, each comment left as a pointer:

    • 2026-07-19, 4e02fa4, _extract._overlaps: 400 pairs took 5.35ms against 2.52ms before the fix, and 2.55x became 1.9x per doubling. Guards: delimiter_pairs, unmatched_closes.
    • 2026-07-28, a102c86, the compiled script sweep: 3-9x at token scale and 89x on long tokens, which 08026d3 reworded as "roughly 70x". The commit message's own figures were 5x and 35x.
    • 2026-08-02, Delimited maiden keeps its marker where the bare form drops it ((née Jones) vs née Jones) #329 / 6fe92d1, M1's clause bisect: 14.1x against a 4.1x control, re-measured 2026-08-03 at 11.2x against 4.2x. Guard: maiden_pairs.
    • Each bullet says no interpreter was recorded.
    • delimiter_pairs' shape, run on 4e02fa4's parent, reads 11.63x against 4.16x on the fix; unmatched_closes reads 4.07x on both. That is recorded with its own date.
    • No tree reproduces M1's 14.1x: the per-clause scan was an uncommitted draft of Delimited maiden keeps its marker where the bare form drops it ((née Jones) vs née Jones) #329, and the bullet says so.
    • mechanisms.md's growth-guard Verification-shapes bullet gains the lesson the M1 comment carried: the control says which unit a ratio is in.
  3. docs/locales.rst: already fixed on master. The sentence after the "What each pack carries" table names both vi and cs, and the table's cs row says "a removal". Nothing to change.

  4. tests/v2/cases.py classifications. Each row was read with the 1.4.0 wheel, outside the tree (PYTHONSAFEPATH=1 uv run --isolated --no-project --with nameparser==1.4.0, wheel path asserted):

    Row 1.4.0 reads Now
    md_in_capitals_before_a_title_word_reads_it_as_the_family (JOHN SMITH MD PROF) given JOHN, middle 'SMITH MD', family PROF: the row's fields parity; its note already said 2.4.0 through 3.1.0 read otherwise
    md_in_capitals_behind_a_particle_chain_still_reports (JOHN VAN MD MA DE) given JOHN, middle 'VAN MD MA', family DE: the row's fields parity, likewise
    a_cyrillic_doctorate_past_a_second_comma (Петренко, Іван, д-р) given Іван, family Петренко, suffix д-р: the row's fields parity, noted "Should д-р ending a name read as a credential, as Belarusian and Ukrainian write it? (Іван Петренко д-р gives family д-р) #1128 restores 1.4.0's reading: 3.1.0 read title 'д-р'"
    salutation_and_an_occupation_that_is_a_surname_reports (Mr Masters) title Mr, family Masters: the row's fields parity, noted that the fields are 1.4.0's and the report is Should a spelled-out degree or job after a name and a comma read as one? (Ahmed Ali, Bachelor gives given Bachelor, family Ahmed Ali) #1457's addition
    md_in_capitals_before_a_credential_stays_the_credential (JOHN SMITH MD PHD) suffix 'MD, PHD' stays parity, noted that 1.4.0 joins with a comma. parity_check.py reads a ", " join as a space
    md_in_capitals_before_a_generation_stays_the_credential (JOHN SMITH MD JR) suffix 'MD, JR' likewise
  5. CONTRIBUTING.md: "about 9 million records from sixteen sources, counted 2026-11-16" becomes "about 9.4 million from eighteen, counted 2026-11-22" (9,370,785 records across the 18 SOURCES). Root AGENTS.md's puan remark notes that locales.MS reads Puan as a title (decisions/salutation-titles, 2026-11-19 Should Puan, Cik and Tuan read as salutations under a Malay choice? (Puan Hajah Ara binti Mohamed gives given Puan) #1179).

Checks

Check Result
full suite 58,103 passed, 47 skipped, 3 xfailed
doc tests pass
sphinx-build -b doctest docs clean
parity_check.py --check 0 of 814 parity rows read otherwise under 1.4.0
snapshot.jsonl byte-identical; test_snapshot.py passes
mypy, ruff check clean

Reviews

design-docs-reviewer on the diff found four defects, fixed in cf8f454:

  • The "roughly 70x" was 08026d3's rewording of a102c86's 89x. The commit message's own figures were 5x and 35x.
  • The bullets quoted timings with no interpreter, against parse-cost's preamble.
  • "No recipe was kept" was not true of two bullets.
  • C6's mixed-case Then bullet restated the widened Then. It now says what the Then does not.

Second round on cf8f454 confirmed every figure and attribution against the commits, and found the new recipe clauses wrong. Fixed in 026b4c3:

  • M1's quadratic was never committed, so the parent of 6fe92d1 times a linear 4.12x.
  • Of the two _overlaps guards, only delimiter_pairs separates the parent from the fix.

The C6 bullet's boundaries were checked against caps_shape_candidate. LeBron, PhDc and Pharm-D are refused by the shape alone, not by any vocabulary claim, and their capitals spellings read as credentials.

Code-oriented aspects were not run, as not applicable: the code changes are comments.

🤖 Generated with Claude Code

derek73 and others added 2 commits November 22, 2026 12:35
rules/C6's Then line says the caps shape it has read since #1517, and
the quote in `_comma` moves with it, gaining its clause line and
decisions pointer. Three measurements that lived only in code comments
(M1's clause bisect, `_extract._overlaps`, the compiled script sweep)
move into dated decisions/parse-cost bullets, the comments left as
pointers, and mechanisms.md's growth-guard bullet records that the
control says which unit a ratio is in. Four case rows labelled as fixes
read 1.4.0's fields and are parity rows, noted as #1467's are; two
parity rows note 1.4.0's comma-joined suffix; a duplicate row goes.
CONTRIBUTING.md's corpus count is retaken, and root AGENTS.md notes
locales.MS reading Puan as a title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The script-sweep figure "roughly 70x" was 08026d3's rewording of
a102c86's 89x, its commit message saying 5x and 35x; the bullet now
says so. All three bullets note that no interpreter was recorded, and
the two with a guard say the guard, run against the fix's parent, is
the recipe. C6's mixed-case Then bullet now carries what the widened
Then does not: the spelling is the caps shape's after a comma alone,
and a word the shape refuses stays a name word.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 22, 2026
@derek73 derek73 added docs Documentation fixes and updates internals Refactors and parse cost with no behavior change labels Nov 22, 2026
@derek73 derek73 self-assigned this Nov 22, 2026
…none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73
derek73 merged commit d91acc3 into master Nov 22, 2026
14 checks passed
@derek73
derek73 deleted the docs/3.2-sweep-follow-ups branch November 22, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation fixes and updates internals Refactors and parse cost with no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant