Skip to content
HALOWERK

Text Tools

cldr measure territory differences

Regional unit comparison finds units unique to each of two regional conventions for the same usage. Use it when an agent needs the differences between two localized editions.

POST https://text.halowerk.com/v1/cldr-measure-territory-differences

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
categorystringYes
usagestringYes
regionstringYes
secondstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "category": {
      "type": "string",
      "maxLength": 48,
      "minLength": 1
    },
    "usage": {
      "type": "string",
      "maxLength": 48,
      "minLength": 1
    },
    "region": {
      "type": "string",
      "maxLength": 5,
      "minLength": 1
    },
    "second": {
      "type": "string",
      "maxLength": 5,
      "minLength": 1
    }
  },
  "required": [
    "category",
    "usage",
    "region",
    "second"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "category": "length",
  "usage": "road",
  "region": "US",
  "second": "GB"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "only_first": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "only_second": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "common": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "only_first",
        "only_second",
        "common"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →