Skip to content

Give no initials for Lao, and read Ukrainian patronymics under locales.RU (#1380, #1212) - #1507

Merged
derek73 merged 5 commits into
masterfrom
fix/issue-1380-1212-lao-ukrainian
Nov 21, 2026
Merged

derek73 merged 5 commits into
masterfrom
fix/issue-1380-1212-lao-ukrainian

Conversation

@derek73

@derek73 derek73 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Relates to #1380 and #1212 (both stay open for what this leaves out).

Two small rule fixes from the 3.2 triage, one per commit.

1. Lao writes no initials (#1380)

The script-property table (_policy._SCRIPT_PROPERTIES) gains a lao row (U+0E80–0EFF). It writes no initials and does write period abbreviations, the same as the thai row. So:

  • initials() gives nothing for a Lao word;
  • T5 reads no Lao letter with a full stop as an initial, and neither does the name match;
  • a Lao title written short (ດຣ.) is still a title by H2's shape.
Text master (cb5088a) this PR
parse("ສົມຊາຍ ໃຈດີ").initials() 'ສ. ໃ.' ''
parse("ດຣ. ສົມຊາຍ ໃຈດີ").title 'ດຣ.' 'ດຣ.'
ສົມຊາຍ ໃຈດີ ສ. ດ. under initials_as_family family ສ. ດ. family ດ., middle ໃຈດີ ສ.
ສົມຊາຍ ສ. ໃຈດີ under two_family_names middle ສ., family ໃຈດີ family ສ. ໃຈດີ

The default parse moves no field. The two policy rows are O8's and O6's existing Accepted clauses for Thai and Burmese, reached now by Lao too.

Evidence. I re-ran the CLDR recipe in decisions/script-properties on cldr c0b65ae3:

  • lo has 37 authored patterns, and none uses an initial.
  • Its block is its own: in each of the 6 patterns where en writes an initial, lo writes the name in full.

Left out, recorded as Open in decisions/script-properties.

  • Khmer: km's block is en's in 40 of its 42 authored patterns, including all 8 that use an initial, so CLDR says nothing about Khmer.
  • Tibetan: CLDR has no personNames block for it.

2. Ukrainian Cyrillic patronymic endings under the East Slavic rule (#1212)

_vocab._EAST_SLAVIC_CYR gains -івна, -ївна, -євич and Ілліч, and so does locales/ru.py's declared copy, which is kept byte-identical. Rules O1 (the rotation) and R9 (the patronymic view) read them under locales.RU as they read the Russian endings. The Ukrainian men's -ович/-йович are the Russian spelling and were read already.

Text, under locales.RU master this PR
Коваленко Олена Петрівна given Коваленко, family Петрівна given Олена, family Коваленко, patronymic Петрівна
Мельник Тарас Ілліч family Ілліч family Мельник, patronymic Ілліч
Олена Петрівна Гаєвич (guard) family Гаєвич, no patronymic family Гаєвич, patronymic Петрівна
Олена Марія Гаєвич (accepted) family Гаєвич family Олена
  • The guard. A middle word carrying an ending blocks the rotation, so a -євич surname after a patronymic stays the family.
  • The accepted cost. A spoken-order name with two given names and a -євич surname rotates. The Russian twin Анна Мария Абрамович already does this today, and rules/O1 now records both.
  • re.I is kept on the Cyrillic pattern, and capitalized Ілліч and all-capitals ІЛЛІЧ have case rows.

Left out, recorded as Open in decisions/R9 and in decisions/O1's entry.

Measured

tools/differential/measure.py --base against a fresh checkout of master cb5088a (the shared cache was not re-recorded):

The Rada under RU. I ran config_diff.py diff default plain:RU --local opensanctions-parliaments --group ua_rada --readings in both trees and compared the files line by line (1,598 names, written surname, given name, patronymic):

  • plain:RU moves 1,367 names from the default on master and 1,596 here.
  • All 229 that this PR moves now read correctly: 150 -івна, 69 -ївна, 5 Ілліч, 5 -євич.
  • 0 were wrong before and are wrong after, and 0 became wrong.
  • Every three-word name now reads correctly. The other 2 are not three words.
  • The issue counted 209 women on 2026-11-08, from a smaller fetch.

The group suggester. suggest_measure.py --base moves 3 cells, ua_rada under each of the three bases:

  • The votes rise: family-first 1,366 → 1,585 of 1,588, and the East Slavic rule 1,367 → 1,586.
  • The suggestion does not change.
  • No drawn group of any size moves, so no figure quoted in Parser.suggest's docstring, docs/suggest.rst or decisions/group-suggestion moves.
  • The ua_rada counts in that file's dated entries stand as measured then.

parity_check.py: 1 of 744 parity rows reads otherwise under 1.4.0. That row is alias_marker_behind_a_maiden_marker_left_a_word, from #1504, already on master and not touched here; it is listed as a follow-up. The new Lao title row passes.

Docs

  • Rules: R7, O1, R9, and O6 and O8 (Lao in their script lists).
  • Decisions: R7, O1, R9 and script-properties, with dated entries.
  • User docs: migrate.rst (two 3.2 entries, with doctests), locales.rst (the RU section names the endings) and two release-log bullets.
  • AGENTS.md: the initial-veto script list.

Reviews

Run on the first push: pr-review-toolkit code-reviewer, pr-test-analyzer, comment-analyzer and code-simplifier, and design-docs-reviewer. Then a code-reviewer pass on the fix commit (62128ed) alone.

What they found, all fixed in 62128ed:

  • A decomposed ї was not read (code review, test analysis). ї is the first letter in any ending that decomposes, to і + U+0308, and -ївна written that way was not read. Both has_patronymic_ending and RU's DEVIATES now compose the word first, as Should a decomposed oğlu (NFD) read as the Turkic patronymic marker? Mamedov Ali Huseyn oğlu reads differently when its ğ is decomposed #1316 made the Turkic marker test do. Two case rows and a DEVIATES test cover it, and all three fail on the previous commit.
  • Moves nothing pinned (test analysis, design docs).
    • What moves. The Lao row also changes the name match, which now reads a Lao letter as a word (ສ. ໃຈດີ / ສົມຊາຍ ໃຈດີ was consistent and now conflicts). It drops the order report, adds given-or-family to a lone ສ., and stops the trailing-initial vote: a list of Lao names ending in a letter suggested FAMILY_FIRST and now suggests nothing. The Ukrainian endings now make Parser.suggest suggest the East Slavic rule for a Ukrainian list.
    • What pins it now. Rows in test_match.py and test_suggest.py (Lao beside its Thai, Burmese and Arabic twins), plus comma-shape and no-pack rows. decisions/script-properties and decisions/group-suggestion record the moves, and so do the release log and migrate.rst.
    • match_diff.py --base. It moves 44 of 690,690 rows, all of them the new Lao pairs going from initial to conflict. No corpus pair moves.
  • Docs.
    • The Lao row was missing from decisions/H2's list of scripts.
    • A dangling reference pointed at the deleted "Not examined" note.
    • The snapshot figure is now right: 22 of the 23 entries are CLDR renderings, not 20.
    • rules/O1 said "three languages" where only two are read.
    • A range in migrate.rst was attached to the wrong noun.
    • The suggester was missing from the reader lists.
    • Release history in a code comment was replaced by a decisions pointer.
    • decisions/R9's Open line now also covers a Ukrainian ending typed with a Latin i.
  • Fix-commit review. No defect found. The fold only adds matches, every caller asks the same predicate, and it adds no frames. Its one note is that the suggester's NFD row passes before the fold, because _suggest already composes each word. That row's comment now says so (4e66b8d).
  • Simplification: none found.

Checks

All pass on 62128ed:

🤖 Generated with Claude Code

derek73 and others added 3 commits November 20, 2026 15:50
The script-property table gains a Lao row writing no initials and
writing period abbreviations, as the Thai row does: CLDR's lo block
uses an initial in none of its 37 authored patterns, writing the name
in full in each of the 6 where en's has one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rule (#1212)

-івна, -ївна, -євич and Ілліч join the endings rules/O1 and R9 read, in
_vocab's pattern and the RU pack's declared copy, with a rotator each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tronymics (#1380, #1212)

rules/R7, O1, R9, O6 and O8; decisions/R7, O1, R9 and script-properties
with dated entries and the measurements; migrate.rst, locales.rst and
the release log; AGENTS.md's initial-veto list; case rows; the rules
corpus and snapshot regenerated (23 Lao initials views move).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 20, 2026
@derek73 derek73 added non-latin-script Names written in a script other than Latin (rules/W) locale-packs Locale packs and language choices (nameparser.locales) initials Reading initials and the initials() view (rules/T) patronymics Father's names and the patronymic view (rules/R9) labels Nov 20, 2026
@derek73 derek73 self-assigned this Nov 20, 2026
derek73 and others added 2 commits November 20, 2026 16:08
… moves review found (#1212, #1380)

has_patronymic_ending and the RU pack's DEVIATES compose the word first,
as the Turkic marker test does (#1316), so -ївна written with a
combining diaeresis reads. Rows for it, the comma shapes and the rule
without the pack; suggester and name-match rows for Lao beside Thai,
Burmese and Arabic, and for the Ukrainian endings; the Lao row's match,
report and suggester moves recorded in decisions/script-properties and
group-suggestion, H2's script list, the release log and migrate.rst.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

initials Reading initials and the initials() view (rules/T) locale-packs Locale packs and language choices (nameparser.locales) non-latin-script Names written in a script other than Latin (rules/W) patronymics Father's names and the patronymic view (rules/R9)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant