package misspell
import "github.com/rogpeppe/go-internal/internal/misspell"
Package misspell implements utilities for basic spelling correction.
Index ¶
Functions ¶
func AlmostEqual ¶
AlmostEqual reports whether a and b have Damerau-Levenshtein distance of at most 1. That is, it reports whether a can be transformed into b by adding, removing or substituting a single rune, or by swapping two adjacent runes. Invalid runes are considered equal.
It runs in O(len(a)+len(b)) time.
Source Files ¶
- Version
- v1.14.1 (latest)
- Published
- Feb 25, 2025
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 2 hours ago –
Tools for package owners.