check_translation
Detect structural drift in translations by comparing headings, HTML tags, tables, links, price tokens, locale prefixes, source script, and punctuation against the source. Ensures the translated page matches the original structure.
Instructions
Compare a translation against its source document for structural drift: heading sequence, HTML tag sequence, table row count, internal link paths, price tokens, locale prefix on internal links, leftover source-script characters, introduced em dashes and emoji. This checks structure, not meaning: it cannot tell you a translation is good, only that it is no longer the same document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | Yes | Locale code of the translation, e.g. "es". Internal links are expected to carry it as a prefix. | |
| source | Yes | The source-language markdown. | |
| translation | Yes | The translated markdown. | |
| check_locale_prefix | No | ||
| forbid_source_script | No | Set false when the target legitimately shares the source script, e.g. Simplified Chinese from a Traditional Chinese source. | |
| require_front_matter | No | Require line 1 to be an H1 and line 2 to be a summary blockquote. |