Skip to content
HALOWERK

Text Tools

locale plural modulo key counterexample

Plural grammar tests find the earliest count whose category differs after adding a proposed repetition period. Use it when an agent needs a counterexample to a periodic message shortcut.

POST https://text.halowerk.com/v1/locale-plural-modulo-key-counterexample

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
localestringYes
startintegerYes
endintegerYes
periodintegerYes
typeSee schemaNo
Show full input schema
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "maxLength": 48,
      "minLength": 1
    },
    "start": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "end": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "period": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "type": {
      "enum": [
        "cardinal",
        "ordinal"
      ]
    }
  },
  "required": [
    "locale",
    "start",
    "end",
    "period"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "pl",
  "start": 0,
  "end": 25,
  "period": 10
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub →