Normalize Text
normalize_textCleaned text plus a list of every change. For text typed without diacritics, from
speech recognition or OCR, or for analytics. Changes a word only when the evidence is
clear (the winning spelling at least 5x commoner); the rest are listed in undecided
with their options. Words the lexicon knows are never respelled except to add
diacritics or fix broken encoding.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"lang": "<lang>"
},
"name": "normalize_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | Yes | sl Slovenian, hr Croatian, sr Serbian; auto picks the language whose lexicon knows most words | |
| text | Yes | Up to 20,000 characters | |
| steps | No | diacritics: restore č ć š ž đ where one spelling clearly wins; spelling: fix known misspellings; lemmas: base form and reading per word; entities: names with their Wikidata ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||