Skip to content
HALOWERK

Textwerk

string approximate substring locations

Find supplied pattern matches at each text endpoint within a bounded Levenshtein distance.

POST https://text.halowerk.com/v1/string-approximate-substring-locations

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
patternstringYes
textstringYes
max_distanceintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    },
    "text": {
      "type": "string",
      "maxLength": 512
    },
    "max_distance": {
      "type": "integer",
      "minimum": 0,
      "maximum": 32
    }
  },
  "required": [
    "pattern",
    "text",
    "max_distance"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "pattern": "cat",
  "text": "xxcatcat",
  "max_distance": 0
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →