What follows is documentation for the parameters that can be used with the Levenshtein Distance Demo.
NOTE
Mr. Gordon produced this documentation using the ChatGPT 5 Thinking large language model.
The interactive demo of a Levenshtein Distance table was built by prompting a combination of the Claude Anthropic and ChatGPT 5 Thinking large language models.
Parameters
| Param | Type / Values | Default | Effect | Notes |
|---|---|---|---|---|
source | string (⤠10 chars) | because | Horizontal (columns) string | Use literal ā
(U+2205) for empty |
target | string (⤠10 chars) | decrease | Vertical (rows) string | Use literal ā
(U+2205) for empty |
filled | 1 | true | yes` (else empty) | empty |
path | 1 | true | yes` | false |
cell | i,j (nonānegative integers) | ā | Show optimal path to the specified cell | Clamped to bounds; e.g., cell=3,5 |
play | 1 | true | yes` | false |
speed | number in [200, 1200] | 700 | Sets the slider position (higher = faster) | Internal delay = (200+1200) ā speed |
delay | number ms [200,1200] | ā | Sets the perāstep delay directly | Overrides speed when both are present |
autofill | 1 | true | yes` | false |
Booleans are caseāinsensitive; accepted truthy values are 1, true, yes, y.
Examples
-
Filled + optimal path:
?source=because&target=decrease&filled=1&path=1 -
Empty grid, then auto-fill animation (faster):
?source=ā &target=kitten&autofill=1&speed=1100 -
Path to a specific cell and auto-play with 500ms delay:
?source=cart&target=track&cell=3,4&play=1&delay=500 -
Just preāload strings (no animations):
?source=crane&target=brain