Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 source realm

Package levenshteindemo is a small gnoweb demo of the Levenshtein edit-distance library provided by [p/moul/x/daily/l...

Readme View source

gno.land/r/moul/x/daily/levenshteindemo/v0

Interactive 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:

gno.land/r/moul/x/daily/levenshteindemo/v0 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.

Overview

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`.

Functions 1

func Render

1func Render(path string) string
source

Render implements the gnoweb view.

  • "" or "/" : explanation + examples.
  • "/<a>/<b>" : distance between a and b, with the DP table.

Imports 3

Source Files 3