spell

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nearest

func Nearest[S ~string](x S, candidates iter.Seq[S]) S

Nearest returns the element of candidates nearest to x using the Levenshtein metric, or "" if none were promising.

func SortByEditDistance

func SortByEditDistance[S ~string](x S, candidates []S)

SortByEditDistance sorts the list of candidates by edit distance from x.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL