Skip to content
HALOWERK

Textwerk

term consistency

Groups all words and two-word sequences by a normalised key (case, hyphens, spaces, ß/ss removed) and reports keys that occur in more than one spelling, with counts and offsets and the most frequent spelling as suggestion. Adds the 418 pairs of equally valid spellings that LanguageTool uses in its WordCoherencyRule (coherency.txt, v6.8, LGPL-2.1: Delfin/Delphin, Foto/Photo, Albtraum/Alptraum .) and caller-defined groups of terms that must not be mixed (Kunde/Auftraggeber). Sentence-initial.

POST https://text.halowerk.com/v1/term-consistency

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYesGerman document text.
termsarrayNoGroups of terms that should not be mixed in one document; the first term is the preferred one.
checksarrayNoWhich built-in checks to run.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100000,
      "description": "German document text."
    },
    "terms": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "array",
        "minItems": 2,
        "maxItems": 10,
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        }
      },
      "description": "Groups of terms that should not be mixed in one document; the first term is the preferred one."
    },
    "checks": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "spelling_variants",
          "hyphen_space",
          "case",
          "sharp_s"
        ]
      },
      "default": [
        "spelling_variants",
        "hyphen_space",
        "case",
        "sharp_s"
      ],
      "description": "Which built-in checks to run."
    }
  }
}

Open original schema

Published input example

{
  "text": "Bitte senden Sie eine E-Mail. Die Email kam an. Unser Onlineshop und der Online-Shop sind neu."
}

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 →