BRAINIAC.software stands with Ukraine.Solidarity with the Ukrainian people against the invasion. Find out how you can help.
BRAINIAC.software
API CatalogPagesAgent instructionsAgentsMCP connectAgentsRecommend fitAgentsCatalog exploreAgentsMCP serversPagesConnectPagesPricingPages

© 2026 BRAINIAC .software

FAQHow it worksContact UsTerms and AgreementsPrivacy StatementCookie Statement
  1. APIs
  2. CLDR Translation QA Locale
  3. Classify numbers by plural category

Classify numbers by plural category API

Return the CLDR plural category (zero, one, two, few, many, other) for each number in a locale, cardinal or ordinal, using make-plural.

POST/api/v1/translation-qa/plural-category$0.002 USDC

Examples

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.

cURLRequest

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

Example responseJSON

{
  "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."
  ]
}

Errors & limits

Errors

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.

Limits

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.

FAQ

  • Do I need an API key? Yes for free and monthly plans. Pay as you go is optional without an account.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related operations

Other operations in CLDR Translation QA Locale. Open one for its path and price.

POST/api/v1/translation-qa/locale$0.005 USDC

Look up CLDR locale data

Return CLDR 49 locale facts for one BCP 47 tag from a vendored set of 40 common locales: decimal and group symbols, number, percent and currency patterns, date and time formats, first day of week, quotation marks, and

POST/api/v1/translation-qa/segment-check$0.03 USDC

Check translated segments

Check up to 500 source and target segments for placeholder, HTML or XML tag, number, URL and email, untranslated, length ratio, quote style, whitespace, and glossary defects using each locale's CLDR number symbols and

POST/api/v1/translation-qa/number-formats$0.005 USDC

Format numbers and dates for a locale

Format up to 100 numbers, currency amounts, percentages, and dates for a locale with Node Intl (ICU and CLDR) and return the formatted strings with the ICU and CLDR versions used.

Related APIs

Other products in this area. Open one for its resources and price.

Company Intelligence Lookup API

Fetch public company profiles from GLEIF and EDGAR: name/country search, LEI profiles, ownership, financials, filings, plus EU VIES VAT validation and GLEIF registration-number lookup. For caller-supplied registry investigation use corporate-intelligence; for OFAC/UK name screening use exclusion.

ESEF Annual Report Revenue LEI API

Find ESEF/UKSEF annual reports by LEI or name, read tagged revenue, profit, assets and equity facts with iXBRL viewer deep links, resolve messy company names to ESEF filer LEIs, and look up SEC tickers and CIKs. All lookups read vendored snapshots. For live GLEIF/EDGAR profiles use company-intelligence; for SEC Form D use public-filings.

Procurement Intelligence API

Independent API for procurement intelligence: UK, EU, and US procurement opportunities, opportunity details, buyer history, awards, and company matching using UK Contracts Finder, UK Find a Tender, TED, and USAspending.