Skip to content
HALOWERK

Textwerk

hyphenate de

Hyphenates every word of at least min_word_length letters with the Liang patterns hyph-de-1996 of the Deutschsprachige Trennmustermannschaft (MIT licence, via npm package hyphen 1.14.1, ISC): reformed spelling, ck stays together (Zu-cker), st may be split (Wes-ten), at least two letters before and after a break. Existing hyphens in compounds are kept and each part is hyphenated on its own. In HTML mode only text nodes are changed; tags, attributes, entities and the content of script, style,.

POST https://text.halowerk.com/v1/hyphenate-de

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYesPlain text or HTML.
formatstringNohtml: only text nodes are hyphenated.
min_word_lengthintegerNoWords shorter than this are not hyphenated.
hyphenstringNosoft: U+00AD; visible: "-" (for display only); pipe: "|".
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100000,
      "description": "Plain text or HTML."
    },
    "format": {
      "type": "string",
      "enum": [
        "text",
        "html"
      ],
      "default": "text",
      "description": "html: only text nodes are hyphenated."
    },
    "min_word_length": {
      "type": "integer",
      "minimum": 4,
      "maximum": 30,
      "default": 6,
      "description": "Words shorter than this are not hyphenated."
    },
    "hyphen": {
      "type": "string",
      "enum": [
        "soft",
        "visible",
        "pipe"
      ],
      "default": "soft",
      "description": "soft: U+00AD; visible: \"-\" (for display only); pipe: \"|\"."
    }
  }
}

Open original schema

Published input example

{
  "text": "Die Silbentrennung verbessert den Blocksatz."
}

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 →