func Render
Render implements the gnoweb view.
- "" or "/" : explanation + examples.
- "/<a>/<b>" : distance between a and b, with the DP table.
Package levenshteindemo is a small gnoweb demo of the Levenshtein edit-distance library provided by [p/moul/x/daily/l...
gno.land/r/moul/x/daily/levenshteindemo/v0Interactive gnoweb demo of the p/moul/x/daily/levenshtein
edit-distance library — it renders an explanation, worked examples, and a
distance calculator with the full dynamic-programming table. It has no distance
logic of its own.
Append two words as /<a>/<b> to compute their distance, e.g.
/r/moul/x/daily/levenshteindemo/v0:kitten/sitting.
Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
Dependency graph:

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.
Package levenshteindemo is a small gnoweb demo of the Levenshtein edit-distance library provided by p/moul/x/daily/levenshtein(/p/moul/x/daily/levenshtein/v0): it renders an explanation, worked examples, and an interactive distance calculator with the full dynamic-programming table.
It contains no distance logic of its own — everything comes from `levenshtein.Distance`, `levenshtein.Matrix` and `levenshtein.Similarity`.