6 ms·
Pluralization rules around the world
- mormegil 8y agoThe source for plural rules (with machine-readable representation) can be found in the Unicode CLDR: http://www.unicode.org/cldr/charts/33/supplemental/language_plural_rules.html http://www.unicode.org/cldr/charts/33/supplemental/language_...
- schoen 8y agoWow, this is super-awesome! But I think the Brazilian Portuguese rule in this chart for the cardinal 0 is wrong: I think it should be "other" (0 pontos) rather than "one" (0 ponto), just as in Spanish, English, and European Portuguese. I've sent a note to a native speaker to check my intuition.
- anewhnaccount2 8y agoIf you want to go deeper, there's the Grammatical Framework Resource Grammar Library: https://www.grammaticalframework.org/lib/doc/rgl-publications.html https://www.grammaticalframework.org/lib/doc/rgl-publication...
- greggman 8y agodoes this really cover all these cases? http://search.cpan.org/dist/Locale-Maketext/lib/Locale/Maketext/TPJ13.pod#A_Localization_Horror_Story:_It_Could_Happen_To_You http://search.cpan.org/dist/Locale-Maketext/lib/Locale/Maket...
- seaish 8y agoDid you get there from here? https://factorio.com/blog/post/fff-244 https://factorio.com/blog/post/fff-244
- wyldfire 8y agoI keep hearing about this game. Is it any good?
- jcranmer 8y agoThe game is all about automating a factory. It's basically a survival game with most of the survival and grindy bits ripped out and turned into better crafting mechanics. If you like games like Minecraft or OpenTTD, you'll probably like Factorio. One of the impressive things they've managed to do is make the multiplayer scale quite nicely--how many other games can say they have 400 concurrent players on one map and still be playable?
- Moru 8y agoPlanet side had a hard limit of 133 players per team, three teams so would end up as 399 players per map. But all the maps work together and influence the game play on all maps so the max per server was a lot more. Sdly they took it down and Planet side 2 isnt as good.
- oldcynic 8y agoAutomating a factory, then redo it so the ratios are right, then again so it's more efficient, then add trains. There's also the circuit system for automating further and doing fancy things like this: https://www.youtube.com/watch?v=indN4kcshB0 https://www.youtube.com/watch?v=indN4kcshB0 It's also quite[0] addictive. You may find you burn a lot of hours. Exceptional value for money if it's your sort of thing. [0] The Cracktorio nickname is well deserved.
- teddyh 8y agoIn the interest of giving context, here is the original video¹ which was impressively recreated in Factorio: https://www.youtube.com/watch?v=SJrY3p9nzVY https://www.youtube.com/watch?v=SJrY3p9nzVY 1. Well, the original file was copied around the Internet well before YouTube, but that is the original video re-encoded in higher resolution and uploaded to YouTube. Further reading: http://knowyourmeme.com/memes/holiday-light-show-videos http://knowyourmeme.com/memes/holiday-light-show-videos
- nkoren 8y agoIn case anybody needs another, similar rabbit hole to get lost in: http://www.sf.airnet.ne.jp/ts/language/number.html http://www.sf.airnet.ne.jp/ts/language/number.html
- tom_mellior 8y agoWeird that Hungarian is listed under rule #1, it should be under #0: Nouns preceded by numbers are always in the singular in Hungarian. Does anyone know for the other Finno-Ugric languages listed under #1 (Estonian, Finnish)?
- hamstergene 8y agoDon't know Hungarian, but pluralization is more than changing the noun after a number. For example, in full phrases like "Clear history after N days", "Found N files" some languages would change the part before the number (instead or together). Another example is text+button "N items in your cart [Buy them now]". The text may be unaffected by the number at all, but in the button "them" usually has to become "it" when N is 1. I don't think the article is accurate. Turkish definitely shouldn't be together with Chinese, it needs plural forms in some situations in which Chinese doesn't, I know this because our product was localized for both. Unicode CLDR is recommended reference.
- jpatokal 8y agoIt's correct for Finnish: 1 tunti, 2 tuntia.
- systoll 8y agoDespite the title, the page describes a function, not the language grammar as a whole. Hungarian has plural forms. kutya = dog, kutyák = dogs. They follow the same pattern as english. The plurals are used way less often, as [roughly] the language doesn't pluralise when it's redundant. But that's outside the scope of PluralForm., and it's up to its users to avoid `PluralForm.get`ting phrases which already tell you the quantity. [That said, the Chinese example should probably be reworded. The stated reason applies to Hungarian, but it's not the whole reason they're in #0.]
- tom_mellior 8y ago> it's up to its users to avoid `PluralForm.get`ting phrases which already tell you the quantity. You mean one should not use `PluralForm.get` to generate snippets of the form "0 pages", "1 page", "2 pages"? Because if that's what you mean, you are directly contradicting all of the examples on the page.
- stevula 8y agoWhy are Latin/Greek listed together under rule #1? They may have shared cultural history but they’re not closely related aside from being in the very large Indoeuropean family. Latin should be with the Romanic languages if anything. Also, it’s a bit naïve to say that a declined language only has 1-2 forms without taking into account oblique cases, but that’s a hard thing to deal with programmatically.
- Asooka 8y agoThis is about how many forms of a phrase are needed to cover all cases. You have a list of phrase templates for each phrase where the number gets substituted in and the number of templates for each phrase depends on the language rule. So for Russian you have 3 templates and if the number is 31, you use template 1, but if it's 0, you use template 3. The relevant word is already declined in the proper case. This isn't about programmaticaly pluralising a single word, it's just so you can select a phrase template.
- cperciva 8y agoThis reminds me of an old Russian joke. A Soviet factory has six fireplaces and only one fireplace poker; rather than carrying the poker around every time they need to use it, they decide that they should get five more so that they can keep one at each fireplace. At this point you need to understand a big of Russian grammar. As mentioned in the link, Russian has different forms for -ending-in-1 numbers, -ending-in-2-through-4 numbers, and -ending-in-5-through-9 numbers. Also, the third set of plurals are often irregular. This being a Soviet factory, the requisition for fireplace pokers needs to be sent with all the correct paperwork to the bureaucracy. A debate arises: What is the appropriate plural for kocherga? Send the form out with the wrong word, and the wrath of the Soviet bureaucracy will fall upon them. After arguing back and forth for a while, an old janitor hears the conversation and proposes a solution: Send in a requisition asking for three kochergi and two more kochergi. A few months later, they get their fireplace pokers along with a note: "Here are the four kochergi and one more kocherga which you requested."
- yosito 8y agoI'm fascinated by this joke, but I have to admit, I don't get it.
- cperciva 8y agoThe factory workers didn't know what the right word was for 5 fireplace pokers was -- only the forms for one or 2-4. So to avoid having to guess (and possibly getting it wrong) they made their request in a convoluted way. The bureaucrats didn't know what the correct plural form was either, so their reply is similarly odd.
- resource0x 8y agorelates to the topic of declension in Russian. In English, there's only 2 forms - e.g. 1 cookie, but N cookies (where N>=2). Imagine that for 3 cookies you would have something special again, like 3 cookises, and so on. In Russian, the word "kocherga" has quite intuitive forms for 1, 2, 3, 4, but when it comes to 5, our intuition breaks down, because the word is unlike any other, so it's difficult to reason by analogy. (This word is really a special case; normally, it's very easy to find the right ending). That's why they chose to put it as 3 kochergi+2 kochergi - just to be on the safe side (BTW, grammatically correct form would be "5 kochereg", which sounds really funny for a native Russian speaker)
- blahedo 8y agoIt says it's about number, but then in the Examples section, Sorbian lists three nominative forms and one genitive. But not all the genitive forms, just the plural form. And no other cases. I'm... confused about how this is supposed to work.
- acjohnson55 8y agoIn some cases, I can guess the logic behind the rule, (e.g. "twenty and one second" type idioms) but in other cases, I can't really fathom why it would be so complicated.
- wyattpeak 8y agoWhile I couldn't comment on how they evolved (and I suspect there are many different answers), I'd point out that English has a very complicated pattern for ordinals: 1, ends in 1 except 11, 111...: -st 2, ends in 2 except 12, 112...: -nd 3, ends in 3 except 13, 113...: -rd everything else: -th (also 0, most people say zeroth but nobody really feels comfortable with it.) However they came to be, there's no mental load in applying them and nobody who speaks English natively ever much thinks about it.
- innocenat 8y agoThis. Come from country who use Type 0 (i.e. no plural whatsoever), English is already complicated and make no sense at first.
- acjohnson55 8y agoYeah, totally agree that there are plenty of things that don't make sense in English. The grammar is easy, but the sure number of irregular froms has got to be really difficult to deal with. At least the rules for plurals in some of the more complex examples are reegular.
- jcranmer 8y agoThe general term for this is grammatical number. English gets by with just singular and plural, but this is by no means universal across different languages. A singular/dual/plural breakdown is quite common as well--Arabic, for example. You can also have a paucal form to represent "few", with or without the dual as well (Arabic has dual and paucal, Russian just has the paucal). On top of this base strata are some more choices. You have some choices to make for 0 (English says that 0 gets a plural form, French believes it to be singular). You can also choose how the rules differ when you get to systematic naming for large numbers--do you lump it in with many, or do you reuse the rules for the small numbers when they show up in larger numbers? Note that systematic naming doesn't have to be based on base-10 (say, Danish), nor does the start of systematic names need to happen on a clean boundary (English starts it at 13, for example).
- yongjik 8y ago> Families: Asian (Chinese, Japanese, Korean), ... I can't complain, but what an odd name for that "family"! (...which is not actually a family, by the way.)
- gnulinux 8y agoI was struck by this too. Chinese and Japanese/Korean are exteremely different languages. Japanese is an agglutinative language whereas Chinese is analytic. Japanese is probably organically more similar to English (if it is at all) than Chinese. But one needs to note that Chinese affected a lot of Asian languages and what we used to call Altai Language family (Turkic, Mongolic, Japonic languages) was actually bunch of different agglutinative languages aggressively affected by Chinese (and each other) which made linguists confuse for decades. Note that Altai Language family does not exist, those languages are not related at all (which is another mistake in the website)
- teraflop 8y agoIn case anyone else was wondering about form #14 which is marked "unused": apparently earlier versions of Firefox incorrectly used it for Macedonian. Firefox 59+ uses form #15 instead: https://bugzilla.mozilla.org/show_bug.cgi?id=1415906 https://bugzilla.mozilla.org/show_bug.cgi?id=1415906
- lucb1e 8y agoI posted this in a group chat with "#14 will surprise you!" attached. I was wondering indeed!
- AnssiH 8y agoNote that that bug was just a documentation issue (see comment #21) - Firefox already used form #15 even before version 59. Version control shows Firefox has used form #15 for Macedonian at least since 2012: https://hg.mozilla.org/l10n-central/mk/annotate/d13b2b460aeb/toolkit/chrome/global/intl.properties https://hg.mozilla.org/l10n-central/mk/annotate/d13b2b460aeb...
- whatsstolat 8y agoThis so needs an xkcd Randall