About this endpoint
What it does
Computes the Levenshtein edit distance between two input strings and returns the distance as an integer.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| source | String | Yes | First string to compare. |
| target | String | Yes | Second string to compare. |
Response
Returns a JSON object with a data integer field containing the Levenshtein edit distance between source and target.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Integer | Yes | Levenshtein edit distance between the two input strings. |