POST
/api/v1/translation-qa/plural-category$0.002 USDCReturn the CLDR plural category (zero, one, two, few, many, other) for each number in a locale, cardinal or ordinal, using make-plural.
An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
curl -i -X POST "https://www.brainiac.software/api/v1/translation-qa/plural-category" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"locale": "ru",
"numbers": [
"1",
"2",
"5",
"21"
],
"type": "cardinal"
}
JSON{
"status": "complete",
"locale": "ru",
"ruleLocale": "ru",
"type": "cardinal",
"categories": [
"one",
"few"
],
"results": [
{
"number": "1",
"category": "one"
},
{
"number": "2",
"category": "few"
}
],
"cldrVersion": "49.0.0",
"sources": [
{
"source": "make-plural 8.2.0 (CLDR plural rules compiled to JavaScript)",
"url": "https://github.com/eemeli/make-plural",
"licence": "Unicode-DFS-2016",
"retrievedAt": "2026-12-03",
"status": "ok"
}
],
"limitations": [
"Numbers are evaluated as written, so 1 and 1.0 can fall in different categories (visible decimals matter in CLDR rules).",
"Compact-decimal exponent forms (1c3) are not supported; pass plain decimal numbers."
]
}HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; status failed or empty payloads return non-2xx and are not charged.
locale and segment-check read a vendored snapshot in src/data/translation-qa for 40 common locales; no CLDR or translation service is called at request time. segment-check finds format defects (placeholders, tags, numbers, links, quotes, whitespace, length, glossary), not meaning, grammar, or tone. number-formats uses the CLDR release bundled with the server's Node.js ICU, which can lag CLDR 49.