Repository navigation
Read an unlisted mixed-case credential after a comma, such as MRes or AuD - #1517
Merged
Merged
Conversation
An unlisted word of letters in mixed case that opens with two capitals or ends in one is the caps shape after a comma, in C4's count, C6's contrast and C16's company, so "Jane Smith, MRes" gives suffix MRes and "Smith, M.B. ChB" suffix "M.B. ChB" (rules/C16's Accepted bullet amended). A capital only inside the word (LeBron), or a hyphen in it (Pharm-D), keeps it a name word; the trailing positions under CapsSuffixes.EVERYWHERE read capitals alone, so "Alex Lee ONeill" keeps its family name. Case repair keeps such a word as written when forced, and the company of a C16 run carries the caps shape's marks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comma's filter asks the shape's two ends in C, so a word with a capital only inside it (McDonald, LeBron) no longer pays the count's frames. Rules S9 now define the mixed-case spelling and C6 reads it; C6 and C16 record the accepted costs (DAndre, McDONALD after a two-word surname, Jansen, J.P. IJsbrand), R4 states its precedence over R5 and where the kept spelling does not reach, and decisions/C6's cost paragraph is corrected. Two code arms no input reached are removed, and the rows the tests review asked for are added, among them the one that pins classify's mixed_case=False. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fix review found it reachable: behind a generation with a title before the surname, C12 reads the word and the count marks nothing, so 'Dr. Smith Jr., AuD' forced gave 'Aud'. Its rows fail without the arm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 22, 2026
derek73
added a commit
that referenced
this pull request
Nov 22, 2026
* Sweep the 3.2 cycle's prose inside the code: docstrings, messages, notes Release checklist step 0, part B, over what changed since v3.1.0. No reading moves: comments, docstrings, message text and case-row notes, plus two tests that run the code two messages offer. - API docstrings: ParsedName.nickname and Role.NICKNAME name the alias marker (#1164); surname1 names the family-comma division and W5's Han pair; ReadingSource.SHAPE names the mixed-case credential (#1517), and capitalized() its force exception; LexiconReading.category lists `familiar` and `spelling`; Policy.two_family_names and Parser.suggest name the suggester's two-family vote (#1452). - Messages: a SettingEvidence row's refused vote offered a mapping, the NameEvidence shape, where a row takes a triple; each now offers its owner's shape, and a test evaluates both. The empty pair-list refusal says what `None` clears to; "a alias_marker" reads "an". - Citation comments trimmed to quote, clause and pointer in _assign, _group, _extract, _vocab, _lexicon and _post_rules; the measurements they held are listed in the PR body for decisions/parse-cost. - tools: suggest_measure's docstring lists the thresholds, populations and harness proof it has now; order_names' blocks are plural; the CLDR pack list, local_agreement's sources, build.py's three modules and two builders' cut --help line. - tests/v2/cases.py notes: release ranges for notes naming a commit or "master", a stale fixture quote, abdul's long_names_only reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Address the review of #1533: unrecorded figures kept, messages per owner - The three measurements no decisions entry holds yet (group's M1 bisect, _extract._overlaps, _vocab's script sweeps) stay in their comments until part C moves them; the pointers had read as though decisions/parse-cost held them. - A SettingEvidence row that is no triple, and a by_signal that is no iterable, are offered a row whose signal votes on the evidence's own setting (`_ROW_EXAMPLE`), not always a name_order row, which the two_family_names and patronymic_rules settings refuse. - One article helper (`_lexicon._a`) for every "a {kind}" message, with honorific's silent h; the completed_by=None clause says it leaves no listed word completing the word, which completes_any can still join. - Docstrings: surname1's family-comma example is under two_family_names; the nickname's alias marker is a listed one, @ and urf by default; ReadingSource.SHAPE's mixed-case word stands in a mixed-case name; Parser.suggest's two-family vote points at where it is weighed; suggest_measure's opening names every switch it suggests. - Tests: the vote test runs over every signal not voting on the order, a new test runs every setting's offered row, the article is checked per kind, the completed_by clearing is read in a parse with its shipped list asserted first, and the bare-string test round-trips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Address the fix review of #1533: every setting offered code it takes - A setting no signal votes on (initials_as_family, capitals_as_family, any other Policy field) was still offered a name_order row by the fallback, which it refuses: it is now told no signal votes on it and offered `by_signal=()`, and its by_signal iterable `()`. - The two remaining "a {kind}" messages (attached on a reading, a phrase matching as a kind) take `_a`. - locales.VI's docstring: CS's fragment removes a reading too (#970). - Tests: the offered-row test runs both messages over the five settings suggest emits, the article test over every kind, the completed_by clause's text is pinned, and both signal helpers assert they yield rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Sweep the suggester's API docs for #1533: plain signals, rounded figures From part A's report (#1534): - Parser.suggest's docstring gives the rounded figures docs/suggest.rst shows, with no dates; the dated tables stay in decisions/group-suggestion, which it names. - Signal's members say what each signal is and what it votes on, in a reader's words, without issue numbers or private table names. - NameEvidence's docstring says what a vote holds: the order voted for, the PatronymicRule, or True or False, as docs/suggest.rst does. And from the review of 093a07e: the two newly guarded article sites (attached on a reading, a phrase matching as a kind) each get a test over every kind that reaches them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Address the review of 7414f46: the first-surname vote's table and reach - Signal.FIRST_SURNAME votes True on a surname researchers rarely write as a given name, the second of SURNAME's two tables, not on a romanized Chinese, Korean or Vietnamese one (`John Wang Smith` casts none). - NameEvidence: a first-surname vote is cast only where two_family_names is weighed, not where the base has it on or an East Slavic rule is decided. - Parser.suggest links its figures to the guide's limits section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
derek73
added a commit
that referenced
this pull request
Nov 22, 2026
* Collect what the 3.2 prose sweep's parts left for each other 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> * Give the moved measurements their commits, interpreters and recipes 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> * Say which guard reproduces which quadratic, and that M1's draft left none Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
After a full name and a comma, an unlisted credential written in mixed case is now read the way an all-caps one is, when it opens with two capitals or ends in one (
MRes,DClinPsy,AuD,BScN).parse("Jane Smith, MRes")gives givenJane, familySmith, suffixMRes, reportedsuffix-or-name. 1.4.0 through 3.1.0 gave givenMRes, familyJane Smith.What reads differently
Jane Smith, MResMRes, familyJane SmithJane, familySmith, suffixMResJane Smith, AuDAuD, familyJane SmithAuDSmith, M.B. ChBM., middleB. ChBM.B. ChB(rules/C16 amended, asSmith, J.P. AUDalready read)Jane Smith, LeBron/McKenzie/PhDc/Pharm-DSmith, MRes,JANE SMITH, MRes,, MResAlex Lee ONeillunderCapsSuffixes.EVERYWHEREONeillForced case repair keeps such a word as written (
capitalized(force=True)ofJane Smith, MReskeepsMRes). The credentials behind a C16 run of initials now carry the caps shape's marks, soSmith, J.P. AUDandAshley Knight, M.S. BMEkeep their capitals when forced (master wroteAudandBme).Where it acts, and where it does not
caps_shape_candidategained a requiredmixed_caseswitch._comma.decidepassesTrue, at C4's count and C6's contrast and at C16's company test.False, so the positions onlyEVERYWHEREreads take words in capitals alone. A surname typed without its apostrophe (ONeill,DSouza,OReilly) ends a name there, and about 770 ORCID family boxes hold one alone.t[:2].isupper() or t[-1:].isupper()) besideisupper(). The frame counts of names the change does not read are unchanged against master:Smith, John98,Smith, Mary McDonald133,John Smith, McDonald124.Measured against master (
snapshot.py --local <corpus> --base <master export>)AuD,DClinPsy,DNSc,MBBChir,MRes,BMedSci, …).MDswhere it had readAbd.local_agreement.py --base): 5 fixed, 0 broken, 2 changed.LLuís, a Catalan given name typed with a doubled capital, behind a two-word head.Accepted costs
These are recorded in rules/C6 and rules/C16 and in the dated entry in decisions/C6.
García López, DAndre,John Smith, McDONALD). Narrowing the spelling would cost about 190 of the credentials gained (MScPT,PhDMD,MBBChBAO).Jansen, J.P. IJsbrand), asJansen, J.P. IJSBRANDalready did.Docs and records
IJsbrandcost.Jane Smith, PhD, MResforced →Mres).Jansen, J.P.gives suffixJ.P., given '') #1238 entry marked superseded in part, plus a new entry.PhDc,Pharm-D), with a doctest forMRes's report.phdin languages.rst and locales.rst, now writtenPhd.CapsSuffixesandPolicy.unlisted_caps_suffixesdocstrings.istitle()passes over a caseless letter, so "neither lower nor title case" is no widerisupper(): the first build droppedXיZ-shaped words, and the ctgov run found one.Tests
LeBron,McKenzie,DeShawn,PhDc,Pharm-D,MRes/AuD,Kim Jong, UN, one-case and lowercase names, empty and one-word heads,MRes Jones,Smith, Jane MRes, andSmith, J.P. LeBron.John Smith, XיZholds theisupper()arm.Alex Lee DSouzáunder EVERYWHERE holds classify'smixed_case=False. It fails with the guard flipped; it is the only row that can, since only an NFD word reaches that predicate.phdto stand in for an unlisted word (test_parser,test_config_diff, the csJana Malá, MgArow).-m serial, the 3.15 suite in its own environment, sphinx doctest and html, ruff, mypy, andparity_check.py(0 of 772 rows).Reviews
McDonald-type words, now fixed. It also found the costs to given names written in the spelling, which are measured and accepted above.mixed_case=Falseguard, flagged two arms no input reached, and listed missing rows (added). The render guard's redundantislower()test was removed.Dr. Smith Jr., AuDforced gaveAud). The arm is restored, with render rows that fail without it.🤖 Generated with Claude Code