Skip to content
HALOWERK

Text Tools

icu recurring lexical tokens

Word frequency returns recurring whole tokens after locale-aware case folding and NFC normalization. Use it when an agent needs repetitions for a translation glossary.

POST https://text.halowerk.com/v1/icu-recurring-lexical-tokens

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYes
localestringNo
limitintegerNo
Show full input schema
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 7000,
      "minLength": 1
    },
    "locale": {
      "type": "string",
      "maxLength": 45,
      "minLength": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "text": "Software package. Software development services.",
  "locale": "en",
  "limit": 2
}

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": {
        "distinct": {
          "type": "integer"
        },
        "recurring": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "token": {
                "type": "string"
              },
              "uses": {
                "type": "integer"
              }
            },
            "required": [
              "token",
              "uses"
            ]
          }
        }
      },
      "required": [
        "distinct",
        "recurring"
      ]
    },
    "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 →