Skip to content
HALOWERK

Text Tools

cldr measure preference sequence

Regional unit preferences return distinct unit identifiers in CLDR selection order. Use it when an agent needs an ordered list of preferred units.

POST https://text.halowerk.com/v1/cldr-measure-preference-sequence

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
categorystringYes
usagestringYes
regionstringYes
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
    }
  },
  "required": [
    "category",
    "usage",
    "region"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

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

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": {
        "matched_region": {
          "type": "string"
        },
        "units": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "matched_region",
        "units"
      ]
    },
    "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 →