Versions in this module Expand all Collapse all v1 v1.0.1 Mar 21, 2024 Changes in this version + func Tokenize(sentence string) []string + type Dictionary map[string]struct + func DefaultDictionary() Dictionary + func DefaultStopword() Dictionary + func NewDictionary(words ...string) Dictionary + func (dictionary Dictionary) Add(words ...string) + func (dictionary Dictionary) Contains(word string) bool + func (dictionary Dictionary) Count() int + func (dictionary Dictionary) Print(separator string) + func (dictionary Dictionary) Remove(words ...string) + type Stemmer struct + func NewStemmer(dict Dictionary) Stemmer + func (stemmer *Stemmer) ChangeDictionary(dict Dictionary) + func (stemmer Stemmer) Stem(word string) string