In my implementation of PersonName formatting, I am stuck at the part of the spec that says:
- Otherwise, find the maximal likely locale for the name script and return its base language (first subtag).
Where maximal likely locale is defined as:
> The term maximal likely locale used below is the result of using the Likely Subtags data to map > from a locale to a full representation that includes the base language, script, and region.
Given I have the script “Latn” its not clear to me how to derive the language since the definition
of maximal likely locale isn’t clear (to me).
The likely subtags data is ordered lexically by “from” locale. Given the example of script “Latn”
then the first (lexically) language that references “Latn” is:
> <likelySubtag from="aa" to="aa_Latn_ET”/>
But I don’t think the intention would be to resolve the language as “aa” from the script “Latn”.
I’d much appreciate an understanding of how to derived the maximal likely locale so I can return
its base language.
Many thanks, —Kip