Versions in this module Expand all Collapse all v1 v1.0.1 Mar 23, 2022 v1.0.0 Mar 19, 2022 Changes in this version + const ENAlphabet + const ESAlphabet + type Dictionary struct + Alphabet string + Words map[string]int + func LoadDictionary(filePath string) (*Dictionary, error) + func NewDictionary(filePath string, alphabet string) (*Dictionary, error) + func (d *Dictionary) TrainFromTextFile(textFilePath string) error + type Spelling struct + func NewSpelling(dicFilePath string) (*Spelling, error) + func (s *Spelling) Correction(word string) string