Skip to content
HALOWERK

Text Tools

icu word concordance context

Word concordance returns neighboring words around each occurrence of a whole lexical token. Use it when an agent needs short context windows for translation review.

POST https://text.halowerk.com/v1/icu-word-concordance-context

Inputs

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

Open original schema

Published input example

{
  "text": "Operating systems. Library management system.",
  "locale": "en",
  "word": "systems",
  "radius": 2,
  "limit": 1
}

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": {
        "occurrences": {
          "type": "integer"
        },
        "contexts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "left": {
                "type": "string"
              },
              "match": {
                "type": "string"
              },
              "right": {
                "type": "string"
              }
            },
            "required": [
              "left",
              "match",
              "right"
            ]
          }
        }
      },
      "required": [
        "occurrences",
        "contexts"
      ]
    },
    "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 →