damerau_distance
Calculate the Damerau-Levenshtein distance between two strings to measure edits including transpositions, helping compare text similarity and detect typos.
Instructions
Calculate Damerau-Levenshtein distance (edits + transpositions) between two strings.
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_a": "<text_a>",
"text_b": "<text_b>"
},
"name": "damerau_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_a | Yes | First string. | |
| text_b | Yes | Second string. |