Repository navigation
Sweep the user docs for 3.2: migrate.rst's 3.2 entries and pickles, and a reader critique - #1534
Merged
Merged
Conversation
Every release-log bullet saying 1.4.0 through 3.1.0 now has an entry under Changed in 3.2 with a doctest: a title typed with a joiner at its edge, the Cyrillic д-р, a mixed-case credential after a comma, DiS., BCh and the Nigerian and Hong Kong marks, German aus, Vanden, the Korean surnames 어 and 라, عبد with ى, the Malaysian honours, Emeritus, and the hyphenated ranks, which 1.4 and 3.1 read two other ways. Each gives the recipe to keep the 3.1 reading where one exists; each example was read under the 1.4.0 and 3.1.0 wheels too. The pickle table gains an Under 3.2 column and two rows for what 3.2 writes, and a Between 3.1 and 3.2 subsection, measured with the 2.8.2, 3.0.0 and 3.1.0 wheels outside the tree: everything 3.0 and 3.1 wrote loads under 3.2, and 3.1 refuses a Lexicon, Parser or matcher pickled by 3.2 (the alias_marker kind), while a Policy, PolicyPatch, every locale pack, ParsedName and Ambiguity load there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ritiques suggest.rst: two_family_names has no 1% floor either, and the East Slavic example holds under a family-first base; the packs that turn the switch on are named, locales.PT not among them; the sizes run to 200 names. A Signal table maps each signal to its report row and setting, with what a vote holds; the names the two-family note counts as a common given name are the ones the switch misreads, which disagreeing() does not list; the reasons a list gets no suggestion are gathered in one list; the deciding section is named for every setting, with the order under its own subheading; the bylines caveat is told once; the closing paragraph drops the design argument for a pointer. customize.rst: the property table gains completes_any and long_names_only; the four-word count leaves out nicknames and maiden names too; the suggest step no longer lists the settings; locales.NL, and locales.MS for bt and Abdul, are named with the edit on the pack; the Abdul recipe is one add call; a recipe for a title that is a given name in your data; the Phrases paragraph and the Lady/Hon/Guru sentence become lists; the alias example uses an invented name and shows its cost, with an alias-markers label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ique - Pickles: a 3.1 Lexicon or Parser holding a word added with a ZWNJ or ZWJ at its edge is refused under 3.2, and a loaded pickle keeps its release's vocabulary while later parser changes reach it (MRes, Dr/), which the 3.0-to-3.1 paragraph overstated the same way; measured with the 3.1.0 wheel outside the tree. - The religious-title recipe removes alhaj and alhajj as styles, which is what they are (its religious-kind remove changed nothing for them); the Arabic match example uses a letter that is no title (ع. حسن); the job recipe is named for the one word it restores. - Sheriff's English cases and their recipe, the alias's two limits (no family after a one-word alias, urf taking the word before it as the family), and entries for MD in a name of one case and for the packs a 3.1 caller already uses (CS, HI, ES_AR), with a closing note that the list covers parses, not suggest() or matching. - A row for code already on 3.0 or 3.1, an upgrade step for 2.7 and 2.8 pickles that no longer assumes the reader is on 3.0, and a 3.2 row in the behavior index naming the release's kinds of change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
two_family_names names every pack that turns it on, in a list of its own: es and es_ar with their given-name lists, pt_br and pt_pt with theirs (pt leaving it off), and cs, sk, hr and sl with none, so a second given name joins the family. The Portuguese cost bullet no longer tells a Brazilian or Portuguese reader to measure before choosing their pack. The surname views gain 3.2's two other behaviors: a lone particle under a family-first order stays one surname, and with capitals_as_family the capitals' family is divided. CapsSuffixes.OFF keeps a mixed-case given name like DAndre too. The patronymic row no longer reads as if the rule did nothing under a family-first order: it still fills the patronymic view under FAMILY_FIRST. A new subsection shows how to change a field a pack sets, which base= cannot (locales.rst gains the stacking-packs label it links). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cs's fragment takes a reading out (Ing's given name) as vi's does, so the table's note and the removals item name both; the two-family packs reach any name of three name words or more, not three words, and cs any name holding Ing; ne's initials_as_family reaches any name holding two single letters in a row, whatever its language; a pack may carry both a rule and words; the nl row names VD; locales.MS is named for Malay names; strict zh is a choice of the language, not locales.ZH, which chooses none. A stacked choice keeps both languages' readings of a word; a Locale's languages field is named where a reader builds their own; and a recipe shows how to check a pack against a sample of one's own names before choosing it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… split long paragraphs languages.rst: DiS. reads as the degree after a comma and stays a name word ending a name without one; Thai's no-initials sentence names Lao, Burmese and Arabic-script names too; the plain Burmese pack reads joined initials holding U as the title (J.U. Smith), and the strict one reads U.S. Grant so as well; bt can still read as a credential, as in Nur Aina bt Rosli. The three dated measurements are rounded, the two held in decisions/ pointing there and the Malay one, which no decisions entry holds, keeping its issue links; the Spanish list is about 1,000 names; the Croatian and Slovenian note drops what was looked for. migrate.rst's pickle paragraph and Ra entry, and policy.rst's patronymic row and capitals shapes, are split into a paragraph and lists, which the length scan flagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shapes.rst: the attachment table gains bound_second, the alias note says a one-word alias with no particle after it takes the family name, and links the alias-markers section; Ab. joins the given names written short. usage.rst: initials() gives none for a word in a script that writes no initials, Arabic and Lao now among them. matching.rst: the fold drops a joiner at a word's edge, and a letter in such a script reads as a word, not an initial. getting-started.rst: where a patronymic stands is order evidence. concepts.rst: an alias marker is a kind of vocabulary, and a mixed-case credential after a comma is read like a capitals one. index.rst: the suggester reads more than the order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ction The release log's ud bullet can then link the recipe rather than the top of a long page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
migrate.rst: a 3.0 pickle holding a word added with a joiner at its edge is refused under 3.2 too; a 3.2 matcher under 3.0 raises ModuleNotFoundError, not ValueError; BCh and the other marks read as the family name ending a name in 1.4 and 3.1 (only after a comma the given name), and BChir, a surname too, stays a name word; the alias stops at post-nominals and a comma, and a choice of English turns alias and aka on; д-р in front was the given name in 1.4; the PT_BR, HR and SL pickles keep values that leave the switch off rather than holding False; the Emeritus recipe takes Emerita out too; the behavior index row names MD and ud inside a name, not MD in capitals. suggest.rst: only the order, patronymic and two-family evidence are signals; a name whose word neither table lists is misread unlisted too; the bylines caveat keeps its family-first base and its sample size. customize.rst: the mixed-case credential needs a name holding a word in mixed case. policy.rst: the Brazilian and Portuguese packs do not hold back the cost on data filed with one surname, where locales.PT is better; the pack that reads a list better is Spanish, Brazilian or Portuguese. locales.rst: vi may read any name, so not every pack changes only some; the default already reads vd as van der, and NL drops VD's credential reading. languages.rst: the plain Burmese pack reads most runs opening with U as the title already, the strict one adding those that spell a listed title; the reason no Czech or Slovak list ships is restored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
suggest.rst: a name with an unlisted word in the switch's slot may be misread, not is (Pedro Zubizarreta Olano reads right). policy.rst: the single-surname caveat is Brazil's; Portugal's inventors gain under pt_pt. languages.rst: strict my drops English's dotted U.S. and U.K., which is why they read as the title, and costs a title phrase after one (U.S. Senator John Smith); the Croatian and Slovenian half of the no-list reason is restored. migrate.rst: after a full name and a comma 3.1 already read the marks in capitals as the suffix, and BChir is the suffix there by its mixed case; the index row's MD is MD in a name of one case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BChir after a full name and a comma is the suffix by its credential reading, however it is written, not by its mixed case; strict my drops every English reading of a run opening with U, credentials such as U.S.A. among them, not only the dotted titles. languages.rst's own single-surname caveat is narrowed to Brazil, as policy.rst's is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
derek73
added a commit
that referenced
this pull request
Nov 22, 2026
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>
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>
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.
Release checklist step 0, the user docs: a prose sweep of every
docs/*.rstpage against what 3.2 changed, migrate.rst's 3.2 entries and pickle rows, and a reader critique of the pages new or heavily changed this cycle. Docs only: no library code, no reading moves, no test expectation edited.docs/release_log.rstand README's announcement are left to the release PR (findings for them are listed below).What changed, by page
д-р, a mixed-case credential after a comma,DiS.,BChand the Nigerian and Hong Kong marks, Germanaus,Vanden, the Korean surnames 어 and 라,عبدwithى, the Malaysian honours,Emeritus, and the hyphenated ranks. It also gains entries forMDinside a name of one case, and for what a 3.1 caller already on a pack sees (CS, HI, ES_AR). A closing note says the list covers parses, notsuggest()or matching.alhajunder the wrong kind, a silent no-op.Sheriffentry gains its English cases.two_family_nameshas no 1% floor either, and the East Slavic floor example holds under a family-first base.locales.PTis not among them.Signaltable (signal, report row, setting, section), with what a vote holds;disagreeing()does not list;suggestion.patch.completes_anyandlong_names_only;addcall, which keeps the reading's file.locales.NLforten, andlocales.MSforbtand Abdul, each with the edit made on the pack's parser.Hon).alias-markersandmalay-btlabels are added.CapsSuffixes.OFF: it keepsDAndretoo.FAMILY_FIRST.base=cannot.Ing;nereaches any name with two single letters in a row (itsDEVIATES,initials_as_family_may_move).VD;zhmeans a choice of the language, notlocales.ZH.languagesfield is named where a reader builds their ownLocale.stacking-packs.DiS.is the degree only after a comma;J.U. Smithwith the titleJ.U., and the strict one readsU.S. Grantso too;btcan still read as a credential.bound_second;Ab.joins the given names written short.initials()gives none for a word in a script that writes no initials (doctest).Pickles, measured
The objects were pickled under each of 2.8.2, 3.0.0, 3.1.0 and the tree, and loaded in the others: a
Lexicon(default and edited),Parser,parser_for(locales.ES), every locale pack,Policy,PolicyPatch,ParsedName,AmbiguityandParser().matching(). The wheels ran outside the tree (PYTHONSAFEPATH=1, a scratch dir,__file__checked).LexiconorParserholding a word a caller added with a ZWNJ at its edge (Look a title up without a ZWNJ typed at the end of the word (Persianمهندس علی رضاییgives givenمهندس, not the title) #1335). Rows written by 2.x read under 3.2 as they do under 3.1.Lexicon,Parseror matcher pickled by 3.2, because thealias_markerreading kind is unknown there. APolicy, aPolicyPatch, every one of the 25 locale packs, aParsedNameand anAmbiguitypickled by 3.2 all load under 3.1.ParsedNameandAmbiguity.ParserreadsImamandDatukthe 3.1 way). 3.2's parser changes still reach it (Jane Smith, MResreads the suffix).Checks
uv run sphinx-build -b doctest docs <tmp>: 0 failures, no output.-b html: no warnings.python -m doctest README.rstand the readme_renderer command: clean.uv run python tools/docs_scan.py: from 16 findings to 7, and no dates. The seven left are pre-existing paragraphs in languages.rst (4) and locales.rst (3); the critique listed them, and each would need a restructuring beyond this sweep.Found outside this part (not fixed here)
udbullet's ":doc:customizeshows" can now be:ref:malay-bt``.Maria Emerita Garciagives familyEmerita Garciaunderlocales.ES_AR) #1476 rewrote ES_AR's given-name list. It was not re-measured here; re-take the recipe indocs/design/decisions/readme-figures.mdbefore release.Parser.suggest's docstring carries measurement dates;Signalmembers'#:comments cite issues, rules and the privateCOMMON_SURNAMES;NameEvidence.votesdoes not say what a vote holds (aRoletriple, aPatronymicRule, or 3.2'sTrue/False).locales.VI's fragment removes readings; cs's does too since Read a repeated Czech degree joined byetas a title (Ing. et Ing. Jan Novákgives givenIng. et Ing.and no title) #970. Check the quotes citing it.YB,ASP,Laks. Muda,TUDM) #1180's per-word my-candidates counts underlocales.MS(about 250 moved, about 200 a title); languages.rst now rounds them.Lexicon.remove(word, kind=K)with a kind the word does not hold is a silent no-op, which is how migrate.rst'salhajrecipe passed its doctest while doing nothing.locales.MSneither dropsbt's credential reading nor joinsAbdulin three-word names, so its users need customize.rst's recipes.locales.MY,J.U. Smithreads titleJ.U.whileU.S. Grantstays initials, which makes the plain pack's reach hard to state. Worth deciding whether that is intended.Reviews
ModuleNotFoundError;BChand the rest ending a name were the family name in 1.4 and 3.1;Signal;vimay read any name;vd;Uas a title.BChsentence widened to "a name and a comma", and strictmy's mechanism was misnamed.BChir's reason, and strictmydropping English's U credentials too. I re-ran theU.S.A.claim myself, and languages.rst's own Brazil caveat was narrowed to match. No further review round was run after 5bf2843.Not applicable: the code, test, type-design and silent-failure reviewers, since no code or test changed. docs/design is untouched, so no design-docs review.
🤖 Generated with Claude Code