Normalize Arabic text
text_normalizeCanonicalise Arabic text for search, matching or indexing: remove tashkeel and tatweel, fold alef/ya/ta-marbuta, unify Arabic-Indic digits, strip bidi control characters and collapse whitespace. mode=light is lossless; search adds letter folding; index also strips punctuation so the result can be used as a dedup key.
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>"
},
"name": "text_normalize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | light = whitespace/digits/bidi cleanup; search = + tashkeel removal and letter folding; index = + punctuation stripped. | |
| text | Yes | The Arabic text to normalize. |