Repository navigation
Fill migrate.rst's Changed in 3.1 list and correct five 3.1 release-log sentences - #1428
Merged
Merged
Conversation
…og sentences The 3.1 list had seven items where about thirty release-log bullets describe a default reading that moved. Add an item with a doctest for each theme (runs of initials, a dotted title before a title, Brahmic initials, words glued at a full stop, commas and dividers in other scripts, Dutch 't and 's, spaced Ter, Abd El, more particles, Georgian, Armenian and Persian titles, a Georgian name beside capitals, Thai names, joined credentials and the Royal Colleges, title words at the ends of a name, the order report) and a closing list for changes under a pack or a setting. In the release log: U.S. Grant no longer keeps given U.S. (#1296 gives given U., middle S.); #1296 also changes initials() of a dotted run in the middle or family name; John Smith, A.B. Ph.D. gives given A., middle B.; the #1312 report began in 2.3.0; #998's degrees include the Portuguese M.Enf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
locales.JA read 逢沢 一郎君 with given 一郎君 from 2.1.0, when the pack shipped, through 3.0.1. After a comma, 1.4.0 through 2.3.0 read S.Pd as a title and M.Pd as the suffix; 2.4.0 through 3.0.1 read both as the title. 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.
Docs only:
docs/release_log.rstanddocs/migrate.rst. Nothing undernameparser/changes.Release-log corrections (3.1.0 entry)
Each "before" below was run under the 3.0.1 wheel from a scratch folder outside the checkout (
PYTHONSAFEPATH=1 uv run --isolated --no-project --with 'nameparser==3.0.1', with an assert thatnameparser.__file__is not in the checkout).U.S. GrantandU.S. Senator"keep givenU.S."U.S. Grant→ givenU., middleS.; 3.0.1: givenU.S.initials()reads every letter of a run in the middle or family name,Ana J.R. García→A. J. R. G.where 1.4.0 through 3.0.1 gaveA. J. G.A. J. R. G.; 3.0.1 and 1.4.0A. J. G.;Ram Bahadur B.K.: treeR. B. B. K., 3.0.1 and 1.4.0R. B. B.A.B. Ph.D."still the given name"John Smith, A.B. Ph.D."still the given and middle names"A., middleB., suffixPh.D.; 3.0.1: givenA.B.given-or-family台邦.撒沙勒, 2.3.0 through 3.0.1 reporting itgiven-or-familyM.Enftools/vocab/query.py --issue 998credential rows: en.toml 26, id.toml 16, pt.toml 1 (menf) = 43Changed in 3.1: new items, and the bullets each covers
All in
migrate.rstundermigrate-3-1. Each has a doctest whose example comes from its bullet, and names the releases that read it the old way:J.R.R. Tolkien, andAna J.R. García's initials.एम.read as an initial, not a title? (एम. एस. वर्माgives titleएम. एस.) #1191.Dr.John Smithgives title 'Dr.John', no given name) #1230, Should an initial glued to a name split at its period? (Ц.Сандаг-Очирgives given 'Ц.Сандаг-Очир', no family) #1235, Should Mark Jhon Sta.Ana read family Sta.Ana, the saint particle glued to its surname? #1071 (Dr.John Smith,St.John Price,Mark Jhon Sta.Ana).፣isn't read as a comma (ከበደ፣ አበበgives givenከበደ፣) #1202, Should the fullwidth full stop between Han names separate a transcription, as the 间隔号 does? (台邦.撒沙勒gives one given name) #1312, Traditional Mongolian script: a genitive suffix joined by U+202F reads as a name word (ᠬᠣᠷᠯᠤᠠ ᠶᠢᠨ ᠴᠣᠢᠢᠪᠠᠯᠰᠠᠩgives middle 'ᠶᠢᠨ') #1236. The U+202F change moves the default parse too (3.0.1: middleᠶ᠋ᠢᠨ; tree: no middle), so it sits here rather than in the pack list.unbalanced-delimiter(Pieter 't Hartgives family't Hartand reports it) #1241.Ter Petrosyan, withJan van der Bergkeeping its lowercase.Nour El Houda Haddougives familyEl Houda Haddou; Algerian names) #1378'sAbd El Kader Haddou.الbefore a name read as the clan prefixآل? (حسن علي ال يحيىgives family 'يحيى') #1150 (ال), Shouldfrábefore a place name be a particle? (Jónas Jónsson frá Hriflugives familyHriflu) #1176 (frá), Should a credential word inside abinchain stay in it? (Ahmad bin Abd Rahmangives familyRahman, patronymicbin Abd) #1177 (bin Abd Rahman).ბატონი დავით ყიფიანიgives given 'ბატონი') #1225 (with ArmenianՏեր), Should Persian titles and Persian spellings of the Arabic ones read as titles? (دکتر محمد رضاییgives given 'دکتر') #1151 (with the tatweel).ჯეკ MAgives family '' and suffix 'MA', whereمحمد MAgives family 'MA') #1222.ณ(na) be a particle, soณ อยุธยาstays one family name? (สุดา ณ อยุธยาgives middle 'ณ', family 'อยุธยา') #1167, Should Thai military and police ranks read as titles? (พ.ต.อ.ดร.สมชาย ใจดีgives title 'พ.ต.อ.ดร.สมชาย' and no given name) #1319, Thai honorifics are glued to the given name (นายสมชาย → given "นายสมชาย") #317, Should Thai academic and professional titles read as titles? (รองศาสตราจารย์ ดร.สุดา ใจดีgives given 'รองศาสตราจารย์') #1166, linkinglanguages.rst'sthai-names.B.Pharm,C.PsychandM.Kesbe listed credentials, now thatAhmed Ali M.Hassanloses its surname to the same guess? #998, ShouldJohn Smith FRCSread FRCS as a credential? Unlisted fellowship post-nominals become the family name #1315.John Smith y Maj.read titleMaj., asJohn Smith y Prof.does? (today: familySmith y Maj.) #1168, Should'Smitty' Pope Jr.read familyPope, as'Smitty' Smith Jr.does? (today: givenPope) #1169.Armitage JOgives familyJO) #1137, Read the initials ending a name as its family name, opt-in, for Nepali and South Indian names (Lakshmi R Sgives middleR, familySby default) #1254.migrate-3-1-packs): Should a Kyrgyz name readFather uuluas the family? (Бекмырза Чолпонбай уулуgives familyуулу) #1187, Shouldo‘g‘liwith a curly or modifier apostrophe be a patronymic marker? (Otabek Sobirjon o‘g‘li Musurmonovgives patronymic''underlocales.TR_AZ) #1186 (TR_AZ), Should a decomposedoğlu(NFD) read as the Turkic patronymic marker?Mamedov Ali Huseyn oğlureads differently when its ğ is decomposed #1316 (Turkic rule with a combining mark), Should O1's rotation skip a name that opens with an initial? (И. Б. Зубкевичgives familyИ.underlocales.RU) #1185 (RU), Name the licences of the shipped data in the package metadata #1370 (ZH), Should a Mongolian choice read the father's name first? (Ухнаагийн Хүрэлсүхgives given 'Ухнаагийн', family 'Хүрэлсүх') #1237 (MN andscript_ordersmerging), Shouldbenbe a family-name particle in Maghrebi and Israeli surnames? (Karim Ben Salahgives middle 'Ben', family 'Salah') #1248 (AR, HE). One doctest covers these. Should a Japanese choice read君as an honorific? (逢沢 一郎君gives given一郎君) #1194 and Shouldja_segmenterdecline a name with no kanji? (あいさわいちろうgives familyあ) #1193 (JA) are acode-block, since the segmenter needs thejaextra and the pack warns without one.The routing table's 3.1 row now names the new themes.
Left out on purpose
These bullets say "through 3.0" but move no default reading a fixture would hold:
DUPONT Jeangives givenDUPONT#659capitals_as_familyand Should initials written after a given name stay together as the family name? (Lakshmi R Sgives middle 'R', family 'S') #1163initials_as_family: new opt-in settings, off by default, documented inpolicy.rst.Mohd RahmanmatchMohammad Rahman? #1383same_asnaming several words: aLexicon.addAPI addition.एम.read as an initial, not a title? (एम. एस. वर्माgives titleएम. एस.) #1191Token.reading's source for a title phrase's object: 3.0's API only, a source label that changes no field.#1238 (
Jansen, J.P.) is covered by the existing "Initials that spell a credential" item.Verification
uv run sphinx-build -q -b doctest docs <tmp>and-b html: no output.uv run python tools/docs_scan.py migrate.rst: 0 findings.Jansen, J.P.gives suffixJ.P., given '') #1238 byAndrews, M.D., A word-initial apostrophe reportsunbalanced-delimiter(Pieter 't Hartgives family't Hartand reports it) #1241 byWillem Jacob 's Gravesande, and ZH's谌龙, which is in the section but is two characters, below the script's length floor.🤖 Generated with Claude Code