Pluralization Rules
Intro
The following pluralization rules are currently defined in polyquack/rules.py
. All language-to-rule mappings are defined in the PLURALIZATION_BY_LANGUAGE
dict. If you find a missing language, or any problems with any of the rules, open an issue on GitLab.
They are delimited by semi-colons (;
), and you will hopefully find them readable, as they can be difficult to follow.
Rules
Rule 0
Definition
Rule 0 only has one form, regardless of count.
Languages
- Chinese
- Farsi
- Japanese
- Korean
- Lao
- Thai
Rule 1
Definition
Rule 1 has two forms (is 1; and all other numbers).
Languages
- Basque
- Catalan (e.g. 1 cançó, 0 cançons, 2 cançons)
- Danish
- Dutch
- English (e.g. 1 song, 0 songs, 2 songs)
- Estonian
- Faroese
- Finnish
- Frisian
- German
- Greek
- Hebrew
- Hungarian
- Italian
- Norwegian
- Portuguese
- Spanish (e.g. 1 canción, 0 canciones, 2 canciones)
- Swedish
- Vietnamese
Rule 2
Definition
Rule 2 has two forms (is 0 or 1; and all other numbers).
Languages
- Brazilian Portuguese
- French (e.g. 0 chanson, 1 chanson, 2 chansons)
- Lingala
Rule 3
Definition
Rule 3 has three forms (ends in 0; ends in 1, excluding 11; and all other numbers).
Languages
- Latgalian
- Latvian
Rule 4
Definition
Rule 4 has four forms (is 1 or 11; is 2 or 12; is 3-10 or 13-19; and all other numbers).
Languages
- Scottish Gaelic
Rule 5
Definition
Rule 5 has three forms (is 1; is 0 or ends in 01-19, excluding 1; and all other numbers).
Languages
- Romanian
Rule 6
Definition
Rule 6 has three forms (ends in 1, excluding 11; ends in 0 or ends in 11-19; and all other numbers).
Languages
- Lithuanian
Rule 7
Definition
Rule 7 has three forms (ends in 1, excluding 11; ends in 2-4, excluding 12-14; and all other numbers).
Languages
- Belarusian (e.g. 0 песень, 1 песня, 2 песні, 5 песень)
- Russian (e.g. 0 песен, 1 песня, 2 песни, 5 песен)
- Ukrainian (e.g. 0 пісень, 1 пісня, 2 пісні, 5 пісень)
Rule 8
Definition
Rule 8 has three forms (is 1; is 2-4; and all other numbers).
Languages
- Czech (e.g. 0 písní, jedna píseň, 2 písně, 5 písní)
- Slovak (e.g. 0 piesní, jedna pieseň, 2 piesne, 5 piesní)
Rule 9
Definition
Rule 9 has three forms (is 1; ends in 2-4 excluding 12-14; and all other numbers).
Languages
- Polish (e.g. 0 piosenek, 1 piosenka, 2 piosenki, 5 piosenek)
Rule 10
Definition
Rule 10 has four forms (ends in 01; ends in 02; ends in 03-04; and all other numbers).
Languages
- Slovenian
- Sorbian
Rule 11
Definition
Rule 11 has five forms (is 1; is 2; is 3-6; is 7-10; and all other numbers).
Languages
- Irish Gaelic
Rule 12
Definition
Rule 12 has six forms (is 1; is 2; ends in 03-10; all numbers not matching the other cases; ends in 00-02, excluding 0-2; and is 0).
Languages
- Arabic
Rule 13
Definition
Rule 13 has four forms (is 1; is 0 or ends in 01-10 excluding 1; ends in 11-19; and all other numbers).
Languages
- Maltese
Rule 14
Definition
Rule 14 has three forms, but it is currently unused.
Languages
None.
Rule 15
Definition
Rule 15 has two forms (ends in 1, excluding 11; and all other numbers).
Languages
- Icelandic
- Macedonian
Rule 16
Definition
Rule 16 has five forms (ends in 1, excluding 11, 71, and 91; ends in 2, excluding 12, 72, and 92, ends in 3, 4, or 9, excluding 13, 14, 19, 73, 74, 79, 93, 94, and 99; ends in 000,000 (i.e. multiples of one million); and all other numbers).
Languages
- Breton
Rule 17
Definition
Rule 17 has two forms (is 0; and all other numbers).
Languages
- Shuar
Rule 18
Definition
Rule 18 has six forms (is 0; is 1; is 2; is 3; is 6; and all other numbers).
Languages
- Welsh
Rule 19
Definition
Rule 19 has three forms (ends in 1 excluding 11; ends in 2-4, excluding 12-14; and all other numbers).
Languages
- Bosnian
- Croatian
- Serbian