Repository navigation
Add locales.MS, a Malay pack: Puan, Cik, Ustaz, Ustazah and Cikgu as titles (#1179) - #1494
Merged
Merged
Conversation
…titles (#1179) ms.toml writes the five readings `default = false`, so the default does not move, and locales.MS, a plain choice of `ms`, turns them on. `cik` is verified as Miss by the honours list #1179 measured. `tuan` stays an excluded entry under the choice too: Malaysians file it as a hereditary prefix, part of the name, and it is a Vietnamese given name; as a salutation it lowered every scored Malaysian and Vietnamese group. Strict `ms` was measured against plain before choosing the pack's shape (nameparser/locales/AGENTS.md): it reads ORCID's Malaysians worse, losing Abdul's bound reading and the English titles, so the pack is the plain choice and removes nothing. Docs: a Malay section in docs/languages.rst with doctests, the packs tables in docs/locales.rst, README's pack list, a release-log bullet; decisions/salutation-titles gains the 2026-11-19 #1179 entry. CLDR's ms file joins the per-pack record, read exactly as the default reads it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ost, counts - Point the tuan and plain-choice citations at decisions/salutation-titles, where the #1179 entry is; ms.py's strict example names Sir and Lawyer, which strict drops, not Dr, which mul.toml keeps. - puan and cik carry after_given, as encik does (rules/H8); positional H1 kept for a title and one name word, weighed in the entry. - Record PUAN SRI reading given 'SRI' as an accepted cost (#1180), the 117th my-candidates move, and the strict count 110. - Tests pin the strict choice's cost (Abdul's join), the H8 and H5 shapes, and the Puan Maharani and Puan Sri costs; rotators gain them. - Mark #606's exclusions of pan, puan and cik superseded, and the vocabulary-exclusions reference line; keep the Standing bullet apart from the Elsewhere paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
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 #1179
This adds a public pack,
locales.MS(Malay). It is a plain choice of the languagems, with no lexicon fragment, no policy patch and no removal list. It turns on five readings thatnameparser/vocab/ms.tomlwritesdefault = false, so the default parse does not move.What changes
Read as titles under the pack:
puan(Mrs.) andcik(Miss), salutations;ustazandustazah, religious teachers;cikgu, teacher.parser_for(locales.MS).parse("Puan Siti binti Ahmad")gives titlePuan, givenSiti, familybinti Ahmad. The default gives givenPuan, as 1.4.0 through 3.1.0 did.Encikwas a title by default already.puanandcikcarryafter_given, asencikdoes, soAhmad, Siti Puanreads titlePuan(rules/H8).tuanstays out, as anexcludedentry, even under the choice.Tuan Aminah binti Tuan Yusof): ORCID's and PatentsView's Malaysian records hold a leadingTuanin the given box 22 times out of 22. Afterbinit is a name word in 5 records of 5.cikis verified as Miss, the open question from Salutations and titles in other languages read as given names:Herra Väinö Johanssongives givenHerra#606, by the honours list ShouldPuan,CikandTuanread as salutations under a Malay choice? (Puan Hajah Ara binti Mohamedgives givenPuan) #1179 measured.Plain, not strict
nameparser/locales/AGENTS.mdasks for this comparison before a pack removes another language's readings. The table compares the strict choice ofmswith the plain one, counting records where every box agrees (config_diff.py score, 2026-11-19):Strict loses ar.toml's bound reading of
Abdul(Abdul Hadi bin Awanggives givenAbdul, middleHadi) and English titles such asSirandLawyer. Malaysian lists mix Malay, Chinese and Indian names, so the pack is the plain choice.Measured: the pack against the default
config_diff.py diff default plain:MS, 2026-11-19:USTAZ69,CIKGU41,USTAZAH4,CIK2,PUAN1. The costs are accepted and recorded:CIK GU(cikgu written in two words) read givenGU;PUAN SRI …reads givenSRIuntilPuan Sriis a title (Read the Malaysian styles, ranks and service designations #1514 left (YB,ASP,Laks. Muda,TUDM) #1180).CIK UJANG, and Indonesia'sPUAN MAHARANI. That second one is the cost of using the pack on Indonesian names, and the docs and release log say to keep the pack to Malaysian names.msfile joins the per-pack record and is read exactly as by default.Puan MaharaniandTuan Nguyenread as before under the default and under an Indonesian or Vietnamese choice, with rows in the tests.Abdul's join (#1464)
Not built here. Once the bound-word property lands, an ms.toml reading of
abdulwrittendefault = falsewould let this pack turn it on. The reading must copy every other file's vocabulary reading of the word, as my.toml'sltdoes (#1483).Docs
Puan,CikandTuanread as salutations under a Malay choice? (Puan Hajah Ara binti Mohamedgives givenPuan) #1179 entry, which supersedes Salutations and titles in other languages read as given names:Herra Väinö Johanssongives givenHerra#606's exclusions ofpuanandcik; docs/design/decisions/vocabulary-exclusions.md's reference line is updated to match.Checks
jaextra (namedivider is not installed).ruff,mypyandbuild.py --checkare clean.cases.pyrows: fail on master, where nomspack exists.Reviews
Drstays under strict);PUAN SRImove;after_givenonpuanandcik;Puan MaharaniandPuan Sricosts., Siti Puan, which now reads titlePuanby H8, has no test row.🤖 Generated with Claude Code