Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nicenshtein ¶
type Nicenshtein struct {
// contains filtered or unexported fields
}
func NewNicenshtein ¶
func NewNicenshtein() Nicenshtein
func (*Nicenshtein) AddWord ¶
func (nice *Nicenshtein) AddWord(word string)
func (*Nicenshtein) CollectWords ¶
func (nice *Nicenshtein) CollectWords(out *map[string]int, word string, maxDistance int)
func (*Nicenshtein) ContainsWord ¶
func (nice *Nicenshtein) ContainsWord(word string) bool
func (*Nicenshtein) IndexFile ¶
func (nice *Nicenshtein) IndexFile(filePath string) error
type RuneNode ¶
type RuneNode struct {
// contains filtered or unexported fields
}
A trie structure that maps runes to a list of following (child-) runes. `word` serves two purposes: 1. If it is not an empty string, it marks the end of a word like a flag 2. It stores the word that the path to it spells
Click to show internal directories.
Click to hide internal directories.