wordset

package
v0.0.0-...-b0fc717 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Levenshtein

func Levenshtein(str1, str2 string) int

func Utf8Split

func Utf8Split(str string, at int) (string, string)

Types

type WordSet

type WordSet struct {
	// contains filtered or unexported fields
}

func CopyWordSet

func CopyWordSet(other WordSet) WordSet

func MakeWordSet

func MakeWordSet(word string) WordSet

func NewWordSet

func NewWordSet() WordSet

func (WordSet) DifferenceMagnitudes

func (this WordSet) DifferenceMagnitudes(other WordSet) (int, int, int)

func (WordSet) Magnitudes

func (this WordSet) Magnitudes() (int, int, int)

interpreting this wordset as a set of differences, compute the aggregate magnitude of the difference. return values: positive: total number of letters you'd need to add from zero to reach this point negative: total number of letters you'd need to subtract from zero to reach this point total: positive + negative

func (WordSet) Subtract

func (this WordSet) Subtract(other WordSet) WordSet

Jump to

Keyboard shortcuts

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