Skip to content
HALOWERK

Text Tools

iana language extlang contraction

Extended language tags resolve an exact registered prefix and extlang pair to its preferred primary language. Use it when an agent needs canonicalizing a legacy extlang pair.

POST https://text.halowerk.com/v1/iana-language-extlang-contraction

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
languagestringYes
extlangstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "language": {
      "type": "string",
      "maxLength": 15,
      "minLength": 1
    },
    "extlang": {
      "type": "string",
      "maxLength": 15,
      "minLength": 1
    }
  },
  "required": [
    "language",
    "extlang"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "language": "zh",
  "extlang": "cmn"
}

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": {
        "registered_pair": {
          "type": "boolean"
        },
        "preferred_primary": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "registered_pair",
        "preferred_primary"
      ]
    },
    "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 →