normalize_arabic
Normalize Arabic text by removing diacritics and tatweel and folding alef variants so interchangeably typed forms match. Ideal for search keys, deduplication, and matching, not for display.
Instructions
Normalise Arabic text so that forms users type interchangeably compare equal — strips diacritics and tatweel and folds the alef variants. Use it for search keys, deduplication and matching, never for text you are about to display.
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": "normalize_arabic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The Arabic text to normalise. | |
| convertDigits | No | Convert Arabic-Indic digits into 0-9. Default false. | |
| unifyTaaMarbuta | No | Fold ة into ه. Helps fuzzy matching, changes meaning. Default false. | |
| unifyAlefMaqsura | No | Fold ى into ي. Helps fuzzy matching, changes meaning. Default false. | |
| collapseWhitespace | No | Collapse whitespace runs. Default false. |