Versions in this module Expand all Collapse all v1 v1.0.0 May 23, 2016 Changes in this version + const MethodInputDeleteMapsToDict + const MethodInputDeleteMapsToSuggest + const MethodIsWord + const MethodSuggestMapsToInput + const SpellDepthDefault + const SpellThresholdDefault + const SuffDivergenceThresholdDefault + func Edits1(word string) []string + func Levenshtein(a, b *string) int + func SampleEnglish() []string + type Autos struct + Model *Model + Results []string + func (a Autos) Len() int + func (a Autos) Less(i, j int) bool + func (a Autos) Swap(i, j int) + type Counts struct + Corpus int + Query int + type Method int + func (m Method) String() string + type Model struct + Data map[string]*Counts + Depth int + Maxcount int + SuffDivergence int + SuffDivergenceThreshold int + SuffixArr *suffixarray.Index + SuffixArrConcat string + Suggest map[string][]string + Threshold int + UseAutocomplete bool + func FromReader(r io.Reader) (*Model, error) + func Load(filename string) (*Model, error) + func NewModel() *Model + func (model *Model) Autocomplete(input string) ([]string, error) + func (model *Model) CheckKnown(input string, correct string) bool + func (model *Model) EditsMulti(term string, depth int) []string + func (model *Model) Init() *Model + func (model *Model) Potentials(input string, exhaustive bool) map[string]*Potential + func (model *Model) Save(filename string) error + func (model *Model) SaveLight(filename string) error + func (model *Model) SetCount(term string, count int, suggest bool) + func (model *Model) SetDepth(val int) + func (model *Model) SetDivergenceThreshold(val int) + func (model *Model) SetThreshold(val int) + func (model *Model) SetUseAutocomplete(val bool) + func (model *Model) SpellCheck(input string) string + func (model *Model) SpellCheckSuggestions(input string, n int) []string + func (model *Model) Suggestions(input string, exhaustive bool) []string + func (model *Model) Train(terms []string) + func (model *Model) TrainQuery(term string) + func (model *Model) TrainWord(term string) + func (model *Model) WriteTo(w io.Writer) (int64, error) + type OldModel struct + Data map[string]int + Depth int + Maxcount int + Suggest map[string][]string + Threshold int + UseAutocomplete bool + type Pair struct + type Potential struct + Leven int + Method Method + Score int + Term string + func (pot *Potential) String() string