Skip to content
HALOWERK

Textwerk

translation qa

Compares each source/target pair deterministically. Times of day are compared in 24-hour form (5:30 PM = 17:30 = 17.30 Uhr). Numbers are parsed with the CLDR separators of the source and target locale (1,234.50 in en equals 1.234,50 in de); a number that only matches when the target is read with source separators is reported as not localized. Placeholders cover printf (%s, %1$d), Python %(name)s, Ruby %{name}, mustache {{name}}, ${name} and ICU MessageFormat arguments parsed with a full ICU.

POST https://text.halowerk.com/v1/translation-qa

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
segmentsarrayYesSource/target segment pairs.
source_localestringNoBCP 47 locale of the source (number separators).
target_localestringNoBCP 47 locale of the target (number separators, punctuation).
length_ratioobjectNoAllowed target/source length ratio (characters), checked for sources with at least 20 characters.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "segments"
  ],
  "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."
    },
    "source_locale": {
      "type": "string",
      "maxLength": 35,
      "default": "en",
      "description": "BCP 47 locale of the source (number separators)."
    },
    "target_locale": {
      "type": "string",
      "maxLength": 35,
      "default": "de",
      "description": "BCP 47 locale of the target (number separators, punctuation)."
    },
    "length_ratio": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "min": {
          "type": "number",
          "minimum": 0,
          "maximum": 10,
          "default": 0.4,
          "description": "Lowest accepted target/source length ratio."
        },
        "max": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 20,
          "default": 2.5,
          "description": "Highest accepted target/source length ratio."
        }
      },
      "description": "Allowed target/source length ratio (characters), checked for sources with at least 20 characters."
    }
  }
}

Open original schema

Published input example

{
  "source_locale": "en",
  "target_locale": "de",
  "segments": [
    {
      "id": "a",
      "source": "You have {count} new messages in %s.",
      "target": "Sie haben {count} neue Nachrichten."
    }
  ]
}

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 →