Textwerk
din5008 formats
Formatting rules of DIN 5008:2020-03 restated in own words from public secondary sources (Wikipedia articles DIN 5008, Datumsformat, Uhrzeit, Rufnummer, Zifferngruppierung, IBAN, Prozentzeichen; Haufe Akademie summary, checked 2026-11-01): date YYYY-MM-DD (preferred), DD.MM.YYYY for domestic recipients, alphanumeric "1. November 2026" without leading zero; time HH:MM[:SS] with two digits and "Uhr" after a protected space, full hours "9 Uhr"; numbers from four digits grouped in threes by a.
POST https://text.halowerk.com/v1/din5008-formatsInputs
| Field | Type | Required | Description |
|---|---|---|---|
| values | array | No | Values to format. |
| text | string | No | Text to scan for non-conforming dates, times, amounts, percentages, phone numbers and IBANs. |
| protected_spaces | boolean | No | Use no-break spaces (U+00A0) inside numbers and before units as recommended; false uses plain spaces. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"values": {
"type": "array",
"maxItems": 100,
"description": "Values to format.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"date",
"time",
"number",
"amount",
"phone",
"iban",
"percent"
],
"description": "Kind of value."
},
"value": {
"type": [
"string",
"number"
],
"description": "date YYYY-MM-DD, time HH:MM or HH:MM:SS, number/amount/percent as number or plain decimal string, iban as string."
},
"currency": {
"type": "string",
"enum": [
"EUR",
"€",
"Euro",
"CHF",
"USD",
"GBP"
],
"description": "amount: currency designation (default EUR)."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 6,
"description": "number/percent: fixed number of decimals."
},
"country_code": {
"type": "string",
"pattern": "^[1-9][0-9]{0,2}$",
"description": "phone: country code without + (default 49)."
},
"area_code": {
"type": "string",
"pattern": "^0?[1-9][0-9]{0,5}$",
"description": "phone: area or mobile network code (with or without leading 0)."
},
"subscriber": {
"type": "string",
"pattern": "^[0-9]{2,12}$",
"description": "phone: subscriber number."
},
"extension": {
"type": "string",
"pattern": "^[0-9]{1,6}$",
"description": "phone: direct-dial extension."
}
}
}
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 50000,
"description": "Text to scan for non-conforming dates, times, amounts, percentages, phone numbers and IBANs."
},
"protected_spaces": {
"type": "boolean",
"default": true,
"description": "Use no-break spaces (U+00A0) inside numbers and before units as recommended; false uses plain spaces."
}
}
}Published input example
{
"values": [
{
"kind": "date",
"value": "2026-11-01"
},
{
"kind": "amount",
"value": 1234.5,
"currency": "EUR"
},
{
"kind": "phone",
"area_code": "030",
"subscriber": "12345",
"extension": "67"
}
],
"protected_spaces": false
}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