# WritersLogic Translation Invariants Checker

> WritersLogic Translation Invariants Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Extracts tokens that must not change in translation (numbers, dates, identifiers, placeholders, URLs, operators) and reports any missing, added, or altered between source and target segments.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/translation-invariants?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-translation-invariants-checker-bfe0f207
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w24gDePhXeoRw19A7WGbg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-translation-invariants-checker-bfe0f207 -d '<json body>'
```

Example prompt: Check these two translated segments for any numbers, dates, placeholders like {0}, URLs, or operators that are missing or changed — source is 'Ship ±5% of 1,234.5 kg by 2024-03-15' and target is 'Envoyer ±5% de 1.234,5 kg avant le 2024-03-15', with source decimal as '.' and target decimal as ','

## When to prefer this

Use this endpoint when you need programmatic, offset-precise verification that translation-invariant tokens (numbers, dates, identifiers, operators, placeholders, URLs) have been faithfully preserved in translated text. It is the right choice for localization QA pipelines, CAT tool integrations, and automated translation review workflows. It handles cross-locale numeric conventions automatically. It is not a grammar checker, translator, or semantic similarity tool — prefer it specifically for token-level invariant validation.

## Known failure modes

- Segment batch exceeds 200 items or 100,000 total characters — returns validation error
- Individual source or target string exceeds 10,000 characters — rejected
- Invalid enum value for sourceDecimal, targetDecimal, or kinds — returns schema error
- Ambiguous number separators reported when sourceDecimal/targetDecimal not specified and separator is contextually ambiguous
- Empty segments array — returns validation error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

For each submitted segment, the endpoint returns any tokens that are missing from the target, added in the target but not in the source, or altered in value — along with their character offsets expressed in UTF-16 code units, Unicode code points, UTF-8 bytes, and grapheme clusters for both source and target texts. Numbers are compared by numeric value, handling mixed decimal/thousands separators, and ambiguous separators are flagged if locale hints are not provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "kinds": {
   "type": "array",
   "items": {
    "enum": [
     "number",
     "identifier",
     "operator",
     "placeholder",
     "url",
     "date"
    ],
    "type": "string"
   },
   "maxItems": 6,
   "description": "Token kinds to check. Default all."
  },
  "segments": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "source",
     "target"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "description": "Echoed back."
     },
     "source": {
      "type": "string",
      "maxLength": 10000
     },
     "target": {
      "type": "string",
      "maxLength": 10000
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "minItems": 1,
   "description": "Up to 200; 100000 characters in total."
  },
  "sourceDecimal": {
   "enum": [
    ".",
    ",",
    "auto"
   ],
   "type": "string",
   "description": "Decimal mark of the source locale. Default auto (both readings tried)."
  },
  "targetDecimal": {
   "enum": [
    ".",
    ",",
    "auto"
   ],
   "type": "string",
   "description": "Decimal mark of the target locale. Default auto."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-translation-invariants-checker-bfe0f207/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
