Repository navigation
Commit 2af8da8
* Ask one predicate per question for split credentials, numerals and paired initials (#752)
Neutral. `_vocab.split_pair` replaces the three copies of the Ph./D.
test (group's merge, `_comma._pieces`, `is_wholly_suffix`), each asking
`SPLIT_PAIR_OPENS` C-level first so an ordinary word pays no frame.
`_vocab.reads_as_generation` replaces `is_trailing_numeral_suffix` and
takes the vocabulary path as `listed`, which C12's evidence passes.
`_vocab.is_cased_paired_initials` lifts #872's inline script condition
out of classify; C5 keeps the bare `is_paired_initials`.
The regex roster named `_group._PH` and `_group._D` after both had moved
to `_vocab`; a new test refuses an entry naming no pattern.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Record the shared predicates in the design docs (#752)
mechanisms.md's ONE-PREDICATE-PER-QUESTION names the three predicates,
decisions/vocabulary-model records the change, its neutrality
measurement and what the later #752 changes widen, and the decisions
entries and AGENTS.md naming the old numeral predicate point at its new
name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Say where the numeral is still recognized apart from its predicate (#752)
The design-docs review found the catalog calling `reads_as_generation`
the numeral's one recognizer while S8's run start, C1's listing form and
the peel's vocabulary path still recognize a numeral on their own; that
`listed` carries C12's whole suffix-word tag, not a numeral test; that
the peel's `is_suffix_piece` vetoes `i` and `v`, so passing `listed` at
its fork would move `John J. V`; that the split-credential widening
never reaches `is_cased_paired_initials` for `A. B.`; and two notes
still naming the retired `PH`/`D`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* State which words pay the split test's frame (#752)
The code review counted one frame per Ph word with a word after it,
whether a D. follows or not; the entry had said per standing pair.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Name C9's walk among the sites recognizing a numeral apart (#752)
The second review found the list of numeral sites missing C9's
family-comma walk and the one-letter numeral behind a suffix word there,
and the comment above reads_as_generation still calling it the
numeral's one recognizer. The list is now stated as found by search.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Disambiguate phase 2a's Standing pointer beside this entry (#752)
Merging master put two 2026-10-25 #752 log entries in
decisions/vocabulary-model, so the Standing line pointing at 2a's
names it by its opening words.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Tighten the comments the PR review found loose (#752)
The peel's veto is on the initial tag, not the shape; the numeral
predicate's summary says what listed makes it answer; the split pre-test
holds only while the first-word test is _PH; group alone declines a head
pair; the site list lives in decisions/ only; import order and a
cases.py note naming _vocab.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep C12's suffix-word test beside its call, and pin the periodless split (#752)
`reads_as_generation` no longer takes C12's suffix-word tag as `listed`:
C12 asks whether the word ending the part is any suffix word or reads
as a generation, and `Jr.` and `Esq.` are no numerals, so the tag test
stands beside the call again, as on master, and costs master's frames.
The listed numerals belong in the predicate, but reading them from the
lexicon now would move `John J. V`, so that half waits for the change
that has every numeral rule ask it; the decisions entry says so.
The test review found no row holding a split credential without its
periods, so making either period required passed the suite: four parity
rows (`Ph D`, `Ph. D`, `Smith, John Ph D`, `John Smith, PH D`), a
periodless pair in `test_is_wholly_suffix`, and unit tests that
`SPLIT_PAIR_OPENS` is a necessary condition of `split_pair` and that
`is_cased_paired_initials` refuses Thai `พ.บ.`.
Re-measured on 2dd0414: the grid, the committed snapshot, every
agreement record, PSC and the ctgov, FEC and tse local snapshots match.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Say which listed numerals the predicate is missing, and what adding them moves (#752)
The review of the fix commits found that the shape test already takes
ii to iv; only the one-letter i and v would be new, and they move 375
readings at the peel's fork and 144 reports at the numeral-before-a-
credential report, not the peel alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 2dd0414 commit 2af8da8
22 files changed
Lines changed: 199 additions & 69 deletions
File tree
- docs/design
- decisions
- nameparser/_pipeline
- tests/v2
- pipeline
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments