Versions in this module Expand all Collapse all v0 v0.1.0 Jun 5, 2020 Changes in this version + func Ngrams(s string, n int) []string + type Bag struct + Grams []string + GramsToWords [][]int + N int + type Match struct + Score int + Word string + type Matches []Match + func (m Matches) Len() int + func (m Matches) Less(i, j int) bool + func (m Matches) Swap(i, j int) + type Model struct + Bags []Bag + Words []string + func New(words []string, bags ...int) *Model + func (m *Model) Bag(N ...int) *Model + func (m *Model) Closest(s string) string + func (m *Model) Matches(s string) (a Matches)