You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should the name-order docs say a list can mix orders, and show two_given_names for Chinese names? (Lim Guan Eng under FAMILY_FIRST gives given Guan, middle Eng) #1183
docs/customize.rst's "Family-first name order" section, since #1162, says name_order describes the data's source and not the bearer's language. Two things about Chinese names written in Latin script that it doesn't cover yet.
1. A source can mix both orders
The section assumes a source has one order. Singapore's Parliament list of current MPs doesn't (parliament.gov.sg, 107 names, 77 with a Chinese surname; measured 2026-11-08 on master ccaf6ad):
Shape
Names
default order
FAMILY_FIRST, two_given_names=True
given first: Lawrence Wong, Desmond Lee
27
27 right
0 right
family first: Lee Hsien Loong, Chan Chun Sing
33
0 right
32 right
an English name, then the Chinese name family first: Alex Yam Ziming
No one setting reads the list. The order belongs to each name, and nothing in the spelling tells it (Sim Ann is family first, Alvin Tan given first). A caller with a list like this needs the order from somewhere else: a separate field, or capitals where the source writes them (#659; Hong Kong's LegCo marks every family name that way).
2. Spaced two-syllable given names need two_given_names
Singapore and Malaysia write the two syllables of a Chinese given name as two words. Under FAMILY_FIRST alone the second one is a middle name:
Input
policy
given
middle
family
Lim Guan Eng
FAMILY_FIRST
Guan
Eng
Lim
Lim Guan Eng
FAMILY_FIRST, two_given_names=True
Guan Eng
''
Lim
The "Names with a compound given name" section shows two_given_names only with Spanish names (Juan Carlos Pérez), so a reader with Chinese names has no way to find it.
Taken for 3.2 (decided 2026-11-19), docs only. Both gaps still stand on master 12b568f8: "Names with a compound given name" (now in docs/policy.rst) shows two_given_names with Spanish names alone, and nothing says a list can mix orders name by name.
What the change holds
A paragraph on mixed lists, with the Singapore figures above. The order then has to come from outside the name, and Parser.suggest rightly suggests nothing for such a list.
A Chinese example of two_given_names under a family-first order, as a doctest, cross-referenced from the name-order section. With an invented name: Tan Wei Ming under FAMILY_FIRST reads given Wei, middle Ming; with the switch on, given Wei Ming.
A pointer to Parser.suggest for a list written in one order: it decides the order and does not suggest this switch. Tried on eight invented names written family first: it suggests FAMILY_FIRST, in mixed case and in capitals; on a list mixing both orders it suggests nothing.
Malaysia as a second example of "the order describes the source": Chinese candidates in Malaysia's election lists are written family first in 347 of 348 names (counted 2026-11-19, my-candidates).
Whether suggest should propose two_given_names for such a list is a candidate on #1452 and stays there.
The same docs change carries #1402's outcome (decided 2026-11-19, closed as left as it is): rules/O9's Accepted list and the capitals_as_family section of the user docs say a bare title in capitals is read as the family where nothing else in the name is in capitals (DR Anna Berg), such a name not being in the switch's format, and decisions/O9's Open: line is closed with a dated entry pointing at #1402's counts.
Activity
derek73 commentedon Nov 19, 2026
Taken for 3.2 (decided 2026-11-19), docs only. Both gaps still stand on master
12b568f8: "Names with a compound given name" (now indocs/policy.rst) showstwo_given_nameswith Spanish names alone, and nothing says a list can mix orders name by name.What the change holds
Parser.suggestrightly suggests nothing for such a list.two_given_namesunder a family-first order, as a doctest, cross-referenced from the name-order section. With an invented name:Tan Wei MingunderFAMILY_FIRSTreads givenWei, middleMing; with the switch on, givenWei Ming.Parser.suggestfor a list written in one order: it decides the order and does not suggest this switch. Tried on eight invented names written family first: it suggestsFAMILY_FIRST, in mixed case and in capitals; on a list mixing both orders it suggests nothing.my-candidates).Whether
suggestshould proposetwo_given_namesfor such a list is a candidate on #1452 and stays there.derek73 commentedon Nov 19, 2026
The same docs change carries #1402's outcome (decided 2026-11-19, closed as left as it is): rules/O9's Accepted list and the
capitals_as_familysection of the user docs say a bare title in capitals is read as the family where nothing else in the name is in capitals (DR Anna Berg), such a name not being in the switch's format, and decisions/O9'sOpen:line is closed with a dated entry pointing at #1402's counts.Document lists that mix name orders, and two_given_names for Chinese …