Repository navigation
Release 3.2.0 - #1538
Merged
Merged
Release 3.2.0#1538
Conversation
The 3.2.0 release-log entry gets its summary and its date, and two bullets it lacked: the parse cost (#1435, #1436), counted with tools/perf/call_count.py against v3.1.0 (285.72 to 195.72 calls on py3.11, 277.72 to 186.72 on py3.15), and the pickles 3.1 cannot load (a Lexicon, Parser or matcher pickled by 3.2), re-checked with the 3.1.0 wheel outside the tree. README.rst announces 3.2 above the 3.0 and 3.1 notices; its Spanish and Argentine figures, re-taken with decisions/readme-figures' recipe, read as they did. PRE_RELEASE is cleared and CITATION.cff names 3.2.0. migrate.rst's Abdul entry counts name words, as #1531 made it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The parse-cost figure is a mean over the reference name's 50 forms (Juan0000 to Juan0049), and the bullet keeps one example, as the release-log rule asks. The Malay pack's Tuan stays a name word with no report, where Tan and Sri outside their phrase report title-or-name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only opening a name: Ahmad Tan Ali and Devi Sri Rajan report nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The notices now read 3.0, 3.1, 3.2; the 3.2 notice follows the whole 3.1 block, its closing paragraph included, and stands before Installation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…graph The paragraph now closes all three notices: 3.0, 3.1 and 3.2, then Getting started, then Installation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…der through "Both" lost its referent once the 3.2 notice stood between it and the 3.1 notice's two tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Devanagari salutation in the Other scripts block, and the romanized Shri read as a name by default and as the title under locales.HI in the Language packs block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Release 3.2.0: steps 1 to 3 of root AGENTS.md's release checklist. This PR has no tag, no GitHub release and no milestone change; those follow the merge.
What it changes
docs/release_log.rst:
John Smith, M.D.costs 35 more frames to parse than in 3.0.1 #1435, Parse cost could fall by about 18% with no reading moved #1436) and the pickles 3.1 cannot load;README.rst: a 3.2 notice after the 3.0 and 3.1 notices, which are untouched, so the three read in release order. Its "More shapes the parser reads" section also gains two Hindi examples:
parse("श्री रवि कुमार वर्मा").titlegives'श्री';Shri Ravi Kumar Vermareads givenShriby default and titleShriunderparser_for(locales.HI).Each was re-run on the tree. No docs page includes or mirrors the README.
nameparser/_version.py:
PRE_RELEASEcleared, so__version__is3.2.0. CITATION.cff:version: "3.2.0"; the file has no date field.docs/migrate.rst: the Abdul entry counts name words, as Count abdul's four name words in the parse, not in classify #1531 made it.
Step 1: what the release moved
uv run python tools/differential/snapshot.py --since v3.1.0on bd9c62f: 607 entries differ, 136 of their names held only by corpus_cldr.jsonl. By field:initialscapitalized_forceд-р(#1519): case repair now keeps the credential as written (11); #1517's mixed-case credential (1)capitalized_force, suffix, titleд-рafter a comma (#1519)capitalized_force, initials, middle, suffixд-рending a name (#1519);Abdafter a family comma no longer the credential (#1464, #1531)family/given, initials, middleالدين,اللهandذو(#1072)given, initials, middle, titleDut.ra(#1520): recorded as accepted in decisions/vocabulary-collisionsalternatives, ambiguities, given, initials, titlecapitalized_force, family, initials, middle, patronymica/l,a/p(#1468)Abd Allah(#1464),M.B. ChB(#1517), the@alias (#1164),д-р(#1519)Every move traces to a merged change and its bullet. Two were checked by their history:
Dut.rais a cost Read Ra as a Korean family name and given name, not only a credential and a title (#1483) #1520 recorded as accepted.Ashley Knight, M.S. BME's case view comes from Read an unlisted mixed-case credential after a comma, such as MRes or AuD #1517's mixed-case credentials.Each quantified claim and its source
locales.available()gives 21 packs at v3.1.0 and 25 now (ms, my, nl, pt_pt);git diff v3.1.0 -- nameparser/config/_rules.pyaddstwo_family_namesfor hr, sl, pt-BR and pt-PT;ALIAS,URFand@mark a second name for the same person? (Ravi Kumar ALIAS Rajugives middle 'Kumar ALIAS', family 'Raju') #1164, Shoulda/l,a/pandanakopen the family name asbindoes? (KUMAR A/L RAJAN NAIDUgives middleA/L RAJAN) #1468, Should a spelled-out degree or job after a name and a comma read as one? (Ahmed Ali, Bachelorgives givenBachelor, familyAhmed Ali) #1457, ReadMaster's degreeafter a name and a comma as the title (Nadir Qassoumi, Master's degreegives given "Master's") #1487, Shouldد.and the Iraqi academic abbreviations read as titles? (د. أحمد علي حسنgives given 'د.') #1149, ShouldParser.suggestproposetwo_family_names? A list ofGabriel García Márquez-style names gets no suggestion, and the default reads familyMárquez#1452, Warn whenLexicon.removenames a reading no vocabulary file holds (remove("alhaj", kind="religious")) #1535).uv run python tools/perf/call_count.py --against v3.1.0, the tool decisions/parse-cost names, gives 285.72 → 195.72 calls per parse of the reference name on py3.11 (−31.5%) and 277.72 → 186.72 on py3.15 (−32.8%), averaged over 50 names;John Smith, M.D.(not in the bullet, which keeps one example): 209 → 135, one warm parse counted with asys.setprofilehook in a v3.1.0 export and the tree, each loaded by path with__file__checked;PYTHONSAFEPATH=1, a scratch dir), and the other way:Lexicon(default and edited),Parser,parser_for(locales.ES)andParser().matching()raiseValueErrornamingalias_marker;Policy,PolicyPatch, a locale pack,ParsedNameandAmbiguityload;config_diff.py score default plain:ES plain:ES_AR --group ES --group MX --group AR, on this tree:ES/ES_AR);Maria Emerita Garciagives familyEmerita Garciaunderlocales.ES_AR) #1476's list rewrite did not move them.README notice
As committed:
The wording is the decided one. Only the first sentence is bold, as in the 3.0 and 3.1 notices; the rendered HTML holds one
<strong>in the notice.Placement: after the 3.1 notice's two bullets and before the "Getting started" paragraph, which now closes all three notices. That paragraph's "takes you through both" now reads "takes you through
suggestandmatching", since "both" lost its referent once the 3.2 notice stood above it; docs/getting-started.rst covers both tools, in its sections "A list of names: letsuggestchoose the settings" and "Names from several sources:matching". The rendered HTML shows 3.1's list closed, the 3.2 notice as a paragraph of its own, then the Getting started paragraph, then Installation.Checks
-n0 -m serial: 41 passed;python -m doctest README.rstand the readme_renderer command are clean;parity_check.py: 0 of 814 parity rows read otherwise under 1.4.0;uv build: the sdist and wheel build, and the wheel installed outside the repo reportsnameparser.__version__ == '3.2.0'.Not verified here
Reviews
initialsrow named only Arabic script (19 of the 348 are Lao, Give no initials for Khmer and Tibetan names, as for Thai, Burmese and Lao (ស៊ុន សុខាgives initialsស. ស.) #1380);capitalized_forcerow put all 12 onд-р(one is Read an unlisted mixed-case credential after a comma, such as MRes or AuD #1517's);Tuan, which reports nothing.Parser.suggestproposetwo_family_names? A list ofGabriel García Márquez-style names gets no suggestion, and the default reads familyMárquez#1452 bullet, needs the local corpora. It stands on that PR's measurement.احمد خان) now givesinitials()a stray'.'. The ZWNJ token is no Arabic letter, so Shouldد.and the Iraqi academic abbreviations read as titles? (د. أحمد علي حسنgives given 'د.') #1149's claim stays true. This predates 3.2.REFERENCEisDr. Juan{i:04d} de la Vega IIIoverrange(50), and the four figures were recomputed on 3.11 and 3.15.TanandSrireporttitle-or-nameonly where they open a name, whileAhmad Tan AliandDevi Sri Rajanreport nothing.🤖 Generated with Claude Code