Skip to content
HALOWERK

Textwerk

quote in source

Quote and source are normalised with an offset map back to the original source: Unicode NFKC, case folding, all quotation marks, apostrophes and dashes unified, whitespace collapsed, soft hyphens removed and line-end hyphenation joined (gekün-\ndigt -> gekündigt). Omission marks ([.], (.), ., ) split the quote into segments that must occur in order. Each segment is searched exactly; otherwise the closest substring of the source is found with Sellers' semi-global edit distance (Sellers.

POST https://text.halowerk.com/v1/quote-in-source

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
quotestringYes
sourcestringYes
max_edit_rationumberNo
case_sensitivebooleanNo
semanticbooleanNoAlso look for a paraphrase with sentence embeddings (downloads a model on first use).
semantic_thresholdnumberNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "quote",
    "source"
  ],
  "properties": {
    "quote": {
      "type": "string",
      "minLength": 1,
      "maxLength": 5000
    },
    "source": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000000
    },
    "max_edit_ratio": {
      "type": "number",
      "minimum": 0,
      "maximum": 0.4,
      "default": 0.15
    },
    "case_sensitive": {
      "type": "boolean",
      "default": false
    },
    "semantic": {
      "type": "boolean",
      "default": false,
      "description": "Also look for a paraphrase with sentence embeddings (downloads a model on first use)."
    },
    "semantic_threshold": {
      "type": "number",
      "minimum": 0.8,
      "maximum": 0.99,
      "default": 0.93
    }
  }
}

Open original schema

Published input example

{
  "quote": "„Der Vertrag kann jederzeit gekündigt werden\"",
  "source": "In § 5 heißt es: Der Vertrag kann jederzeit mit einer Frist von einem Monat gekündigt werden."
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →