suggest

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Suggest

func Suggest(input string, species []string, n int) []string

Suggest returns up to n species names closest to the input, limited to plausible near-spellings (see plausible). It returns nothing when no candidate is close, so callers can distinguish "did you mean X?" from "no such name exists here". Levenshtein distance is computed case-insensitively; substring matches get their distance halved as a relevance boost.

Types

This section is empty.

Jump to

Keyboard shortcuts

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