Versions in this module Expand all Collapse all v1 v1.0.0 Mar 27, 2026 Changes in this version + func Analyze(text string) []string + func Find(source string, targets []string) []string + func FindFold(source string, targets []string) []string + func FindNormalized(source string, targets []string) []string + func FindNormalizedFold(source string, targets []string) []string + func Intersection(a []int, b []int) []int + func LevenshteinDistance(s, t string) int + func LowercaseFilter(tokens []string) []string + func Match(source, target string) bool + func MatchFold(source, target string) bool + func MatchNormalized(source, target string) bool + func MatchNormalizedFold(source, target string) bool + func NoldTransformer() transform.Transformer + func NoopTransformer() transform.Transformer + func NormalizeTransformer() transform.Transformer + func NormalizedFoldTransformer() transform.Transformer + func RankMatch(source, target string) int + func RankMatchFold(source, target string) int + func RankMatchNormalized(source, target string) int + func RankMatchNormalizedFold(source, target string) int + func StopwordFilter(tokens []string, stopwords set.GenericDataSet[string]) []string + func StringTransform(s string, t transform.Transformer) (transformed string) + func Tokenize(text string) []string + type Document struct + ID int + Text string + func NewDocument(id int, text string) Document + func (d Document) Terms() []string + type Index map[string][]int + func NewIndex() Index + func (idx Index) Add(docs ...Document) + func (idx Index) Remove(docs ...Document) + func (idx Index) Search(text string) []int + type Rank struct + Distance int + OriginalIndex int + Source string + Target string + type Ranks []Rank + func RankFind(source string, targets []string) Ranks + func RankFindFold(source string, targets []string) Ranks + func RankFindNormalized(source string, targets []string) Ranks + func RankFindNormalizedFold(source string, targets []string) Ranks + func (r Ranks) Len() int + func (r Ranks) Less(i, j int) bool + func (r Ranks) Swap(i, j int)