correct_text
Corrects Czech text: check spelling, add or remove diacritics. Supports spellcheck, strict mode, diacritics addition, and diacritics stripping.
Instructions
Opraví český text pomocí Korektor — pravopis nebo doplnění diakritiky.
Use cases pro legal-tech:
- **spellcheck** (default) — kontrola pravopisu před odesláním podání
- **spellcheck_strict** — agresivnější (až 2 edits/word)
- **diacritics** — doplnění diakritiky do textu bez ní
(OCR výstupy, emaily, mobilní zprávy: ``Jan Vzorek bez hacku`` → ``Jan Vzorek bez háčků``)
- **strip** — odstranění diakritiky (např. pro URL slugy nebo legacy systémy)
Pozor: CZ-only. Modely jsou z roku 2013, vlastní jména a nová slova mohou
mít omezenou přesnost.
Args:
text: Vstupní český text.
mode: Operace — ``spellcheck`` (default), ``spellcheck_strict``,
``diacritics``, ``strip``.
Returns:
``corrected`` (upravený text), ``model``, ``mode``, ``changed`` (bool).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| mode | No | spellcheck |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||