Skip to content
HALOWERK

Text Tools

locale plural integer form run

Plural message runs return the longest consecutive interval using the same grammatical key. Use it when an agent needs a count interval that shares wording.

POST https://text.halowerk.com/v1/locale-plural-integer-form-run

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
localestringYes
startintegerYes
endintegerYes
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
    },
    "type": {
      "enum": [
        "cardinal",
        "ordinal"
      ]
    }
  },
  "required": [
    "locale",
    "start",
    "end"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

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

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 →