Skip to content

Read Malaysian a/l, a/p and anak as patronymic particles, as bin is (#1468) - #1475

Merged
derek73 merged 3 commits into
masterfrom
claude/issue-1468-al-ap-anak-f4979f
Nov 19, 2026
Merged

derek73 merged 3 commits into
masterfrom
claude/issue-1468-al-ap-anak-f4979f

Conversation

@derek73

@derek73 derek73 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Closes #1468

Malaysian Indian names write a/l (anak lelaki, son of) or a/p (anak perempuan, daughter of) between the bearer's name and the father's, and Iban and Bidayuh names write anak. All three read as middle names, so a father's name of two words was cut. Each is now a patronymic reading in nameparser/vocab/ms.toml, read as bin is (rules/R9, the patronymic view).

Input (invented names) before (master, 1.4.0 through 3.1) after
KUMAR A/L RAJAN NAIDU middle 'A/L RAJAN', family 'NAIDU' family 'A/L RAJAN NAIDU', patronymic the same
Devi a/p Muthu middle 'a/p', family 'Muthu' family 'a/p Muthu'
Rita Sari anak Jerome Insol middle 'Sari anak Jerome', family 'Insol' middle 'Sari', family 'anak Jerome Insol'
Anak Agung Made Putra given 'Anak', middle 'Agung Made', family 'Putra' the same, reporting particle-or-given

The issue's open questions

  1. The patronymic view: yes, it holds the father's name, as after bin. R9's kind test is that the phrase after the particle names the bearer's own father, not a family name passed down. It passes: of 118 distinct phrases after the three words in the two Malaysian lists, 109 follow one bearer. The other 9 are one member written two ways, brothers, or a common Tamil given name.
  2. anak outside a Malay choice: shipped in the default vocabulary, with a given reading beside the patronymic one, as binti has. So a name it opens (Balinese Anak Agung, about 300 ORCID given boxes and Indonesia's DPR, DPD and regional lists) keeps its reading and reports the fork. The cost is recorded as accepted in rules/R9 and decisions/R9: mid-name anak behind a Balinese or Bruneian prefix (I Gusti Anak Agung Made, Pengiran Anak), or opening the family before a family comma, opens the family, and the view then holds a title, not a father. No list measured writes the prefixed shape. Telling the title from the particle would need a two-word exception the vocabulary cannot express.
  3. A / L with spaces: not supported. Neither list writes it, nor AL/AP for the particle, nor a full stop. Only the slashed spellings are written, in capitals and lower case. One candidate writes A/K for anak; it is left unlisted, and decisions/R9's Open line records it.

a/l and a/p state may_be_given = false, so they fold like de (rules/P1):

  • A/L Rajan reads family 'A/L Rajan'.
  • Kumar, a/l Rajan (one word before a family comma) reads family 'Kumar a/l Rajan' and no given name, where bin leaves given 'bin'. Neither list writes that shape, and it is pinned as accepted.

Case repair writes the particles in lower case, as it writes bin: KUMAR A/L RAJAN repairs to 'Kumar a/l Rajan'.

Measured 2026-11-19, against master a6198e5d

snapshot.py --local <corpus> --base <master checkout>:

  • my-candidates (Malaysia's election candidates, in capitals): 115 of 3,077 distinct names move (130 of 3,683 records). Every one holds A/L (69), A/P (3) or ANAK (43). Before, none read with the father's whole name in the family and the view; after, all 115 do. Nothing else moved.
  • opensanctions-parliaments: 28 of 26,400 distinct names move.
    • All 25 my_parliament names holding a/l (12), a/p (1) or anak (12): 0 right before, 25 after.
    • The three ANAK AGUNG … names of Indonesia's lists gain the particle-or-given report; no field moves.
  • Committed snapshot: two corpus names move the same way (Suresh a/l Muthu, Kavitha a/p Raman), and the rules examples add new names. conventions_agreement.json re-records those two names: the source states no family name for them, the same record Hassan bin Yusof has, and their patronymic now agrees.

Sweeps

  • Comma shapes: all four, plus a suffix comma.
  • Orders: all three. Under the family-first orders each word reads as bin reads. A trailing Anak under FAMILY_FIRST opens the family before the first word, as Binti does there; that is pinned.
  • Spellings: capitals, lower case and Title case read alike.
  • Credentials: a/l is listed whole, so no slash-chunk credential reading touches it; Kumar A/L Rajan MD/PhD keeps the suffix.
  • NFD: the words are ASCII, so there is nothing to decompose.

Rows

  • Thirteen rows in tests/v2/cases.py. The fix(#1468) rows fail on master; the Balinese head row fails there only for its new report.
  • tools/differential/parity_check.py: 0 of 642 parity rows differ from 1.4.0.

Docs

  • rules/R9: examples, the kind-test sentence, and an Accepted bullet for the title cost.
  • decisions/R9: a Standing line, Open items, and the 2026-11-19 Log entry.
  • decisions/family-without-an-inherited-name: points to the decisions/R9 entry.
  • docs/migrate.rst: a "Changed in 3.2" entry with doctests.
  • One release-log bullet.

Checks

  • uv run pytest and uv run pytest -n0 -m serial
  • uv run mypy
  • uv run ruff check
  • uv run sphinx-build -b doctest docs <tmp>
  • tools/vocab/build.py --check

Review

pr-review-toolkit's code-reviewer, pr-test-analyzer and comment-analyzer, and the repository's design-docs-reviewer, on the first commit. The fix commit was then reviewed by design-docs-reviewer, and its findings fixed in a third commit. What the reviews found:

  • counts that mixed records with distinct names;
  • wording true only under one order or with no comma;
  • a real person's name in a note and in an example;
  • missing rows for a/l opening a name, one word before a family comma, capitals case repair, and a trailing Anak under FAMILY_FIRST;
  • the prefixed Anak Agung cost, now recorded as accepted.

Not applicable: silent-failure-hunter and type-design-analyzer (no error handling or types changed).

🤖 Generated with Claude Code

derek73 and others added 3 commits November 19, 2026 10:08
…1468)

Malaysian Indian names write a/l (son of) or a/p (daughter of) between
the bearer's name and the father's, and Iban and Bidayuh names write
anak; all three read as middle names, cutting a father's name of two
words (KUMAR A/L RAJAN NAIDU read middle 'A/L RAJAN', family 'NAIDU').
Each is now a patronymic reading in ms.toml, so the family opens at it
and the patronymic view holds the father's name. a/l and a/p are never
given; anak keeps a given reading, so Balinese Anak Agung at the head
stays the given name, reported, as binti does.

my-candidates: 115 of 3,683 spellings move, every one a name holding
A/L, A/P or ANAK, all now read with the father's whole name.
opensanctions-parliaments: the 25 my_parliament names move the same
way; three ANAK AGUNG names gain the particle-or-given report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reviews found the move counts dividing distinct names by records
(115 of 3,077 names, 130 of 3,683 records in my-candidates, where the
first commit's message and entry said 115 of 3,683 spellings), a real
candidate's name in a note, an unsupported surname claim, and wording
true only under the default order. They also found shapes no row
pinned: a/l opening the name and the given part after a family comma
(P1's fold for a never-given particle, as de reads, where bin leaves a
given name), a trailing Anak under FAMILY_FIRST, case repair in
capitals, and anak opening the family behind a Balinese prefix, where
the patronymic view holds the title Anak Agung. That last cost is
recorded as accepted in rules/R9 and decisions/R9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The review of the first fix found the new R9 bullet saying anak reads as
the particle anywhere inside the name, where the head of the given part
after a family comma leaves it to position (Putra, Anak Agung Made), and
the release log saying anak opening a name reports the fork, where one
opening the family before a family comma does not (Anak Agung Ayu,
Sari). Both are now stated by position, with examples. A row note said
"a family-first order" where only FAMILY_FIRST opens the family; an
example name was one word from a real record and is replaced; the
initials example and the ORCID count now name their input and
population.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 19, 2026
@derek73 derek73 added vocabulary Fixed by a word-list entry: per-word vocabulary and language packs patronymics Father's names and the patronymic view (rules/R9) labels Nov 19, 2026
@derek73 derek73 self-assigned this Nov 19, 2026
@derek73
derek73 merged commit 9afb220 into master Nov 19, 2026
14 checks passed
@derek73
derek73 deleted the claude/issue-1468-al-ap-anak-f4979f branch November 19, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patronymics Father's names and the patronymic view (rules/R9) vocabulary Fixed by a word-list entry: per-word vocabulary and language packs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should a/l, a/p and anak open the family name as bin does? (KUMAR A/L RAJAN NAIDU gives middle A/L RAJAN)

1 participant