Aller au contenu

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).

NomTypeDescription
codestringoptionnelA single BCP-47 language code, e.g. ru, ar, fr-CA. Falls back to the base language then to ['other'].
codesarrayoptionnelSeveral BCP-47 codes for a bulk lookup, e.g. ['ru','ar','fr']. Takes precedence over code.
{
"tool": "plural_categories",
"arguments": {}
}