Repository navigation
CLDR-19918 CLDR-19920 Fix RBNF spell-out errors in 15 locales - #6295
Conversation
|
Thanks for the pull request. I added some additional comments to the tickets that will need to be addressed. My hope is that these tickets will be approved next week when I attend the meeting. |
a7f912a to
7738f02
Compare
|
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
|
Thanks @grhoten. I updated the PR per your evaluation in https://unicode-org.atlassian.net/browse/CLDR-19920?focusedCommentId=213245 and amended it into the single commit; the PR description lists everything. Beyond what was already here:
One thing I left alone: the hr accusative of compound thousands. On main it was "dvadeset i jedna tisuću"; with the nominative fix it is now "dvadeset i jedna tisuća", and it should be "jednu tisuću". The accusative rule sets delegate to the nominative ones, so fixing it needs accusative scale rules. I can add those here or in a follow-up, whichever you prefer. Test data was regenerated, This comment was written by Claude (AI) on behalf of @dblock. |
|
Thanks for the updates. Three more things before this is ready: hr: accusative of compound thousands and feminine scale words My triage comment was wrong to say the accusative was already right.
Only the hy and ka: 1,000,000,000,000,000 Now that 1,000,000,000,000 is the short-scale "տրիլիոն" / "ტრილიონი", keeping the long-scale "բիլիար" / "ბილიარდი" at 1,000,000,000,000,000 mixes the two scales. The Armenian word is also missing the final դ that this pull request just restored in "միլիարդ". Please change 1,000,000,000,000,000 to "կվադրիլիոն" and "კვადრილიონი" here rather than leaving them for later. eo: hyphens in multi-word ordinals Only the new million-and-up rules add a hyphen, so the output is inconsistent:
Please verify if the hyphen usage should be consistent at every scale word. For example, should "mil" be treated like the others ("du-mila") and hyphenate the whole multiplier ("dudek-unu-miliona"). |
7738f02 to
b61a51f
Compare
|
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
CLDR-19918, as triaged in its comments: - az: altmış, səksən; ordinals 70 and 80 use %%inci (yetmişinci, səksəninci); ordinal 1000 min, 10^9 milyard. - hy: 10 alone տասը (տասն stays the combining form); իննսուն; միլիոն, միլիարդ, տրիլիոն, կվադրիլիոն. - ka: თვრამეტი; 10^12 ტრილიონი, 10^15 კვადრილიონი. - ro: neuter cardinal o sută, o mie. - da: neuter ordinals tusinde, tusind og første, million første. CLDR-19920, as evaluated in its comments: - sl: 21, 31, ... enaindvajset, not enegaindvajset. - hr: dvadeset i jedna tisuća; accusative scale words (dvadeset i jednu tisuću, jednu milijardu, jednu bilijardu) and feminine accusative below 1000 (dvadeset i jednu). - bs: jedna, dvije, dvjesta, jedanaest, šesnaest, četiristo; hiljadu, dvije hiljade, tri miliona, pet miliona; jedna milijarda, bilion(a), jedna bilijarda (dvije bilijarde, pet bilijardi). - mk: сто, двесте, четиристотини; илјада for 1000; plural scale words (две илјади, два милиони), feminine милијарда and билијарда; neuter две; и before a final one-word part (сто и еден). - be: трэці, чацвёрты, двухсоты, шасцісоты; пяцьдзясят, шэсцьдзясят; сямсот and васямсот in every gender; адзін with a Cyrillic і; трыльёнаў; ordinal tens пяцідзясяты, шэсцідзясяты, сямідзясяты in every gender; ordinals from 1000 rebuilt (тысячны, двухтысячны, дваццаціаднатысячны). - is: sjö; tvö hundruð without the soft hyphen; milljón(ir), einn milljarður, billjón(ir), einn billjarður (tveir billjarðar); og only before the last element. - lo: Lao words for zero, the places from a hundred, the ordinal prefix, minus and the decimal point, replacing Thai ones. - sq: miliard, biliard. - af: sewende, agtste, negende; duisendste, duisend en eerste; en before a final single-word part (honderd en een, honderd en tweede). - eo: ordinals of round millions (miliona, du-miliona); multi-word ordinals hyphenated throughout (dudek-unua, du-mila, dudek-unu-miliona), as PMEG 23.4 prefers. Test data regenerated with generate-rbnf-ssv. lo.ssv keeps its existing numbers: the generator now also adds 2^53-1, which does not parse back in Lao (or Thai) with repeated ລ້ານ, independently of this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b61a51f to
5404629
Compare
|
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
|
Thanks @grhoten, all three are addressed and amended into the single commit. hr: the masculine, neuter and feminine accusative rule sets now have their own scale rules. Feminine scale words take a hy and ka: 10^15 is now "կվադրիլիոն" and "კვადრილიონი" (e.g. մեկ կվադրիլիոն, ერთი კვადრილიონ ერთი). eo: PMEG §23.4 (https://bertilow.com/pmeg/gramatiko/nombroj/a-vortoj.html) accepts spaced ordinals, but prefers hyphens wherever the number has spaces: "Se oni kunmetas, oni por klareco prefere skribu dividostrekojn tie, kie estas spacetoj en la origina plurvorta nombro", with examples such as dudek-sepa and mil-sepcent-tridek-dua. So every multi-word ordinal is now hyphenated, through a private Test data for eo, hr, hy and ka was regenerated with This comment was written by Claude (AI) on behalf of @dblock. |
| %%en: | ||
| 1: ' en =%spellout-cardinal=; | ||
| 21: ' =%spellout-cardinal=; | ||
| 30: ' en =%spellout-cardinal=; | ||
| 31: ' =%spellout-cardinal=; |
There was a problem hiding this comment.
Note to self: Normally we would use the or-else notation, but the the irregular pattern makes it difficult to use such syntax.
| 1000: [<%spellout-cardinal-feminine< тысяча >>|тысячны]; | ||
| 2000: [<%spellout-cardinal-feminine< $(cardinal,one{тысяча}few{тысячы}other{тысяч})$ >>|<%%ordinal-prefix<тысячны]; |
There was a problem hiding this comment.
This is a good modernization change now that the syntax exists. The previous rules predate such syntax existing.
| 1000: hiljadu[ >>]; | ||
| 2000: <%spellout-cardinal-feminine< $(cardinal,one{hiljada}few{hiljade}other{hiljada})$[ >>]; | ||
| 1000000: <%spellout-cardinal-masculine< $(cardinal,one{milion}few{miliona}other{miliona})$[ >>]; |
There was a problem hiding this comment.
This is a good modernization change now that the syntax exists. The previous rules predate such syntax existing.
| 2000: <%spellout-cardinal-feminine< $(cardinal,one{илјада}other{илјади})$[ >%%and-masculine>]; | ||
| 1000000: <%spellout-cardinal-masculine< $(cardinal,one{милион}other{милиони})$[ >%%and-masculine>]; | ||
| 1000000000: <%spellout-cardinal-feminine< $(cardinal,one{милијарда}other{милијарди})$[ >%%and-masculine>]; | ||
| 1000000000000: <%spellout-cardinal-masculine< $(cardinal,one{билион}other{билиони})$[ >%%and-masculine>]; | ||
| 1000000000000000: <%spellout-cardinal-feminine< $(cardinal,one{билијарда}other{билијарди})$[ >%%and-masculine>]; |
There was a problem hiding this comment.
This is a good modernization change now that the syntax exists. The previous rules predate such syntax existing.
CLDR-19918
CLDR-19920
Fixes the spell-out errors reported in CLDR-19918 (as triaged in https://unicode-org.atlassian.net/browse/CLDR-19918?focusedCommentId=213204) and CLDR-19920 (as evaluated in https://unicode-org.atlassian.net/browse/CLDR-19920?focusedCommentId=213245).
CLDR-19918: az, hy, ka, ro and da, following the "Change" items in the triage comment, including the unreported ones (az ordinal vowel harmony and milyard; hy տասը, միլիոն, տրիլիոն, and կվադրիլիոն at 10^15; ka ტრილიონი and კვადრილიონი at 10^15; da neuter ordinals tusinde, tusind og første, million første). Not changed: the "probably" items (az bir yüz/bir min, hy 100/200/1000), da fyrrende (judgment call), and ar, which is being fixed separately; note that the same hamza issue as إثنان is in إثنتان, إثنا عشر and إثنتا عشرة. The da fix also changes the neuter ordinals 1001–1999 from "tusinde …" to "tusind …", matching the common rule set.
CLDR-19920: sl, hr, bs, mk, be, is, lo, sq, af, eo, following the "Change" items in the evaluation comment, including the broader and unreported ones:
[<< тысяча >>|…тысячны]-style rules and a private%%ordinal-prefixfor the joined genitive forms (двухтысячны, пяцітысячны, дваццаціаднатысячны, мільённы). 700 and 800 are "сямсот" and "васямсот" in every gender, as the evaluation recommends, rather than "семсот" as the ticket asked; ordinal 600 is "шасцісоты"; masculine 1 is "адзін" with a Cyrillic і; "трыльёнаў"; and the ordinal tens are пяцідзясяты, шэсцідзясяты, сямідзясяты in every gender (the "probably" item; a Belarusian reviewer should confirm).%%and-*rule sets; this changes most outputs above 100. Also milljón/milljónir, einn milljarður/tveir milljarðar, billjón/billjónir, einn billjarður/tveir billjarðar.%%hundredslist (сто, двесте, четиристотини), "илјада" for 1000, plural scale words, feminine милијарда and билијарда, and "и" before a final one-word part via%%and-*rule sets.%%cardinal-hyphenatedrule set; this changes every multi-word ordinal.Validation: every output change was reviewed by formatting all public rule sets for 0–2100 and a set of larger numbers with ICU 79 before and after; the only changes are the intended ones, and no two numbers format identically within a rule set. Test data regenerated with
generate-rbnf-ssv,TestRBNFpasses, and the files are well-formed XML.lo.ssvkeeps its existing numbers: the generator now also adds 2^53−1, which does not parse back in Lao (nor would it in Thai) because of the repeated ລ້ານ, independently of this change.This PR was prepared by Claude (AI) on behalf of @dblock, who reported both tickets.