Repository navigation
Read the Cyrillic doctorate д-р ending a name as a credential, and the Bulgarian д.м. under a Bulgarian choice - #1519
Merged
Conversation
…, as credentials (#1128) д-р gains a credential reading in ru.toml, uk.toml and bg.toml beside its academic one, a title/suffix dual position decides, as CLDR writes it: "Іван Петренко д-р" gives family Петренко, suffix д-р, and in front it stays the title. bg.toml lists д.м. as дм, its stops removed as for md, so "доц. д-р Мария Петрова, д.м." reads title "доц. д-р", family Петрова, suffix д.м. A lowercase mask keeps д-р lowercase under case repair. к.м.н. and д.м.н. already read by the dotted shape (rules/S3); the spaced к. м. н. is left as initials. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The vocabulary review found that Дм., Дмитрий written short, folds to дм as the initials Д.М. do, so with bg.toml's readings on by default "Мережковский Дм." lost its family name under FAMILY_FIRST, locales.RU included. дм is written default = false: a Bulgarian choice reads the degree, the default and a Russian choice do not. The decisions entry records the cost and the re-taken CLDR figures, its recipe compares --since the base, and #1104's Standing line no longer lists д-р; the tests review's rows are added, with a render test for the mask. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…an readings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
derek73
added a commit
that referenced
this pull request
Nov 22, 2026
Bring in #1519; keep both release-log bullets. The compiled files merged clean and build.py --check reports them current. 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.
Closes #1128
д-р(доктор) ending a name is now a credential:parse("Іван Петренко д-р")gives familyПетренко, suffixд-р. 1.4.0 through 3.1.0 gave middleПетренко, familyд-р. This is option 1 of the issue, decided 2026-11-21.Part 1: the dual
ru.toml,uk.tomlandbg.tomlgiveд-рacredentialreading beside itsacademicone. That makes it a title/suffix dual decided by position, assrandltare.Іван Петренко д-рПетренко, familyд-рПетренко, suffixд-рІван Петренко, д-рд-рд-рПетренко, Іван д-рд-рд-рІван Петренко д-р.д-р.(rules/H5's chain)д-р.д-р Іван Петренко,проф. д-р Іван ПетренкоІван Петренко, проф. д-рпроф. д-рпроф., suffixд-рІван д-рд-рІван, suffixд-р, reportedgiven-or-family, asJohn SrandJohn LtreadСидоров Иван Петрович д-р(locales.RU)Сидоров, familyд-рд-рA lowercase case mask (
cased = "д-р") makes repair writeд-р; master wroteД-Р, for the title too. The Latin lookalikeд-p(Latinp) isn't listed and stays a name word.Part 2: the degree abbreviations
д.м.is listed inbg.tomlasдм. Why your probe moved nothing: an acronym credential is matched with every full stop removed, asM.D.ismd.add("д.м.")storesд.м, which never matches.дмis writtendefault = false, so only a Bulgarian choice reads it.Surname Дм.(Дмитрий written short) andSurname Д.М.lost the family name under every order, underlocales.RUtoo.Мережковский Дм.under FAMILY_FIRST.к.м.н.andд.м.н.need no entry. Three dotted chunks are rules/S3's shape, already read as the credential on master.к. м. н.,м. ф. д.) still reads as initials, asJohn Smith, M. D.does. Reading it would take a new rule, and none was written.к.ф.-м.н.or the other degree abbreviations, so none is listed.The issue's open point (an invented name of the ORCID record's shape):
доц. д-р Мария Петрова, д.м.доц. д-р Мария Петрова, givenд.м.languages=frozenset({"bg"}), plain or strict)доц. д-р, givenМария, familyПетрова, suffixд.м.: the comma becomes a suffix comma and the title run peelsдоц. Мария Петрова, givenд.м., suffixд-р(both readings wrong; accepted and recorded)Measured (base efdf0e1)
cldr_agreement.py: 9 field agreements gained, none lost.cldr_agreement.jsonis re-recorded.snapshot.py --since efdf0e16: 18 entries, all CLDR renderings.д-р.snapshot.py --local --base:opensanctions-parliamentsandjrc-names(the corpora holding Cyrillic) match the base;orcid-researchersmoves 1 name, the one holdingд-р.config_diff.py, addingдмby default: 1 of 29,666 local names holding the letters moved. The review then found theДм.andД.М.shapes the corpora don't hold, which is why it is opt-in.tools/name_usage.py: no name in any local corpus or Wikidata bearsд-рorдм.Docs and tests
д-рending a name read as a credential, as Belarusian and Ukrainian write it? (Іван Петренко д-рgives familyд-р) #1128 entry covering why the trailing-title build was withdrawn and the dual chosen, the abbreviations, the accepted costs, the case mask and a recompute recipe. It also has a Standing line. ShouldJohn Smith (Msc.Ed)read suffixMsc.Ed, asJohn Smith Msc.Eddoes? #1104's Standing line no longer listsд-рas a name word, and ShouldHans Meier Priv.-Doz.read the listed title at the end, asHans Meier Prof.does? #1116's "Left" bullet points to the new entry.д-р), with the expression that recounts it.locales.RU, plus the boundaries (Петрова, Д.М.stays initials by rules/C16; the spaced form; the Latinp;Мережковский Дм.keeps its family).д.м.; the default,locales.RUand plain or strict ru/en choices don't), and a render test for the mask.build.py --check, sphinx doctest, andparity_check.py(0 of 774 rows).Reviews
Дм.collision. That madeдмopt-in. It also found the misplaced Standing line.John Smith (Msc.Ed)read suffixMsc.Ed, asJohn Smith Msc.Eddoes? #1104's stale Standing line;--since, which would show 0 moves;🤖 Generated with Claude Code