similarity

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EliminateLeastSimilarValue

func EliminateLeastSimilarValue(arr []string) []string

Types

type LevenshteinResult

type LevenshteinResult struct {
	OriginalValue string
	Value         string
	Distance      int
}

func CompareWithLevenstein

func CompareWithLevenstein(v string, vals []string) []*LevenshteinResult

func FindBestMatchWithLevenstein

func FindBestMatchWithLevenstein(v string, vals []string) (*LevenshteinResult, bool)

type SorensenDiceResult

type SorensenDiceResult struct {
	OriginalValue string
	Value         string
	Rating        float64
}

func CompareWithSorensenDice

func CompareWithSorensenDice(v string, vals []string) []*SorensenDiceResult

func FindBestMatchWithSorensenDice

func FindBestMatchWithSorensenDice(v string, vals []string) (*SorensenDiceResult, bool)

Jump to

Keyboard shortcuts

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