Skip to content
HALOWERK

Text Tools

locale plural range endpoint disagreement

Plural range grammar checks where the grammatical key for a numeric range differs from its upper endpoint. Use it when an agent needs correct range labels in localized output.

POST https://text.halowerk.com/v1/locale-plural-range-endpoint-disagreement

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
localestringYes
rangesarrayYes
typeSee schemaNo
Show full input schema
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "maxLength": 48,
      "minLength": 1
    },
    "ranges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "low": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000
          },
          "high": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000
          }
        },
        "required": [
          "low",
          "high"
        ],
        "additionalProperties": false
      },
      "maxItems": 50,
      "minItems": 1
    },
    "type": {
      "enum": [
        "cardinal",
        "ordinal"
      ]
    }
  },
  "required": [
    "locale",
    "ranges"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "pl",
  "ranges": [
    {
      "low": 0,
      "high": 1
    },
    {
      "low": 2,
      "high": 5
    }
  ]
}

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 →