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

ParamType / ValuesDefaultEffectNotes
sourcestring (≤ 10 chars)becauseHorizontal (columns) stringUse literal āˆ… (U+2205) for empty
targetstring (≤ 10 chars)decreaseVertical (rows) stringUse literal āˆ… (U+2205) for empty
filled1trueyes` (else empty)empty
path1trueyes`false
celli,j (non‑negative integers)—Show optimal path to the specified cellClamped to bounds; e.g., cell=3,5
play1trueyes`false
speednumber in [200, 1200]700Sets the slider position (higher = faster)Internal delay = (200+1200) āˆ’ speed
delaynumber ms [200,1200]—Sets the per‑step delay directlyOverrides speed when both are present
autofill1trueyes`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