misspell

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package misspell impements utilities for basic spelling correction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlmostEqual

func AlmostEqual(a, b string) bool

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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