plural_categories
Get the CLDR plural categories a language REQUIRES (babel-authoritative - the canonical source, not an LLM guess), so you author exactly the right plural forms per target locale. Pass code for one language or codes for several. Returns the ordered categories plus an example integer per category. Read-only, free (0 credits). Use this before writing plural_forms via propose_translation(s).
Parameters
Section titled “Parameters”| Name | Type | Description | |
|---|---|---|---|
code | string | optional | A single BCP-47 language code, e.g. ru, ar, fr-CA. Falls back to the base language then to ['other']. |
codes | array | optional | Several BCP-47 codes for a bulk lookup, e.g. ['ru','ar','fr']. Takes precedence over code. |
Example
Section titled “Example”{ "tool": "plural_categories", "arguments": {}}