Textwerk
glossary enforce
For every glossary entry the source term is searched in each source segment with Unicode word boundaries (multi-word terms with flexible spacing); in stem mode simple inflection suffixes (s, es, e, en, n, er, ern, em, ens, 's) are accepted on the last word, which covers regular German and English plurals and cases. If the source term occurs, one of the allowed target terms must occur in the target; forbidden variants are reported wherever they appear. Case-insensitive unless an entry is.
POST https://text.halowerk.com/v1/glossary-enforceInputs
| Field | Type | Required | Description |
|---|---|---|---|
| segments | array | Yes | Source/target segment pairs. |
| glossary | array | Yes | Glossary entries. |
| match | string | No | stem accepts simple inflection suffixes on the last word. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"segments",
"glossary"
],
"properties": {
"segments": {
"type": "array",
"minItems": 1,
"maxItems": 2000,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"source",
"target"
],
"properties": {
"id": {
"type": "string",
"maxLength": 200,
"description": "Optional segment id, returned with the findings."
},
"source": {
"type": "string",
"maxLength": 5000,
"description": "Source text."
},
"target": {
"type": "string",
"maxLength": 5000,
"description": "Translation."
}
}
},
"description": "Source/target segment pairs."
},
"glossary": {
"type": "array",
"minItems": 1,
"maxItems": 2000,
"description": "Glossary entries.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"source",
"target"
],
"properties": {
"source": {
"type": "string",
"maxLength": 200,
"description": "Source term."
},
"target": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"type": "string",
"maxLength": 200
}
}
],
"description": "Required target term or list of allowed target terms."
},
"forbidden": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 200
},
"description": "Target variants that must not be used."
},
"case_sensitive": {
"type": "boolean",
"default": false,
"description": "Match the terms case-sensitively."
},
"note": {
"type": "string",
"maxLength": 500,
"description": "Note returned with violations of this entry."
}
}
}
},
"match": {
"type": "string",
"enum": [
"exact",
"stem"
],
"default": "stem",
"description": "stem accepts simple inflection suffixes on the last word."
}
}
}Published input example
{
"segments": [
{
"id": "1",
"source": "Click Save to store the invoice.",
"target": "Klicken Sie auf Sichern, um die Rechnung zu speichern."
}
],
"glossary": [
{
"source": "Save",
"target": "Speichern",
"case_sensitive": true
},
{
"source": "invoice",
"target": "Rechnung"
}
]
}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
- Textwerk0.002 USDC
acronym ideas
POSThttps://text.halowerk.com/v1/acronym-ideasSplits the title into words, marks German and English stop words (and, of, für, und ), and enumerates in word order every combination of the first 1-3 letters of each significant word (stop words contribute 0 or 1 letter when allowed), with
- Textwerk0.005 USDC
agg check
POSThttps://text.halowerk.com/v1/agg-checkApplies documented rules to the ad text and its first line or title: explicit age limits and age ranges, youth-related team wording and career-stage target groups (age); native-speaker, accent and origin requirements, nationality (ethnic or
- Textwerk0.002 USDC
anglicism replace
POSThttps://text.halowerk.com/v1/anglicism-replaceLooks up every word in about 1,050 entries that OpenThesaurus (export 2026-10-30, LGPL-2.1 or CC BY-SA 4.0) labels English, Anglicism or Denglisch, matching inflected forms from german-pos-dict 1.2.2 (CC BY-SA 4.0) and English heads of comp