Skip to content
HALOWERK

Text Tools

corpus keyword context concordance

Return keyword-in-context matches with original UTF16 text offsets.

POST https://text.halowerk.com/v1/corpus-keyword-context-concordance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYes
querystringYes
context_tokensintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 12000,
      "minLength": 1
    },
    "query": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    },
    "context_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20
    }
  },
  "required": [
    "text",
    "query",
    "context_tokens"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "text": "Red birds fly. Blue birds rest.",
  "query": "birds",
  "context_tokens": 1
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub →