Documentation
¶
Index ¶
- func CntChars(words map[string]bool) map[rune]int
- func CntSubstrs(words map[string]bool, length int) map[string]int
- func DefaultDataPath() string
- func ListSubstrs(word string, length int) []string
- func LoadAllLangs(langDir string) map[string]map[string]bool
- func LoadLang(langFile string) map[string]bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CntSubstrs ¶
CntSubstrs counts all the substrings of given length in a language lexicon.
func DefaultDataPath ¶
func DefaultDataPath() string
DefaultDataPath gets the lexicon word list file location from the LEX_DATA environment variable.
func ListSubstrs ¶
ListSubstrs lists all the substrings of a word of given length.
func LoadAllLangs ¶
LoadAllLangs loads all the language files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.