Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseMatches ¶
Up to n candidates whose Ratio against word, compared by characters, is at least cutoff, best first and equal scores in candidate order; nothing when n is not positive
func Ratio ¶
func Ratio[T comparable](a, b []T) float64
Similarity of a and b from 0 to 1: twice the elements they share over their combined length, shared runs found longest first on either side of each match; one for two empty sequences
Types ¶
This section is empty.