Skip to content
HALOWERK

Text Tools

iana language preferred replacement

Language code migration returns the registered deprecation date and preferred replacement for a selected subtag. Use it when an agent needs a standards-based replacement decision.

POST https://text.halowerk.com/v1/iana-language-preferred-replacement

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
typeSee schemaNo
subtagstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "type": {
      "enum": [
        "language",
        "region",
        "script",
        "variant",
        "extlang",
        "grandfathered",
        "redundant"
      ]
    },
    "subtag": {
      "type": "string",
      "maxLength": 55,
      "minLength": 1
    }
  },
  "required": [
    "subtag"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "subtag": "iw"
}

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": {
        "deprecated": {
          "type": [
            "string",
            "null"
          ]
        },
        "replacement": {
          "type": [
            "string",
            "null"
          ]
        },
        "action": {
          "type": "string"
        }
      },
      "required": [
        "deprecated",
        "replacement",
        "action"
      ]
    },
    "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 →