Mechanical Pass
mechanical_passFix Persian text mechanical errors like Arabic characters, punctuation, and spacing, then verify no issues remain. Returns remaining problems and a clean flag for use as a first or final editing step.
Instructions
Deterministic mechanical fix + verification gate for Persian text.
Fixes what needs no judgment (Arabic ي/ك, Latin , ; ? %, straight quotes,
ZWNJ on می/نمی, spacing) and proves the result: remaining lists any
mechanical issue left, clean is true only when none remain. Use it as
the first step (so the LLM works on a clean base) and as the final gate
(so nothing ships with mechanical errors). Ambiguous cases (em/en dashes)
are flagged in remaining, never guessed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||