lex

package module
v0.0.0-...-91418e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2015 License: MIT Imports: 6 Imported by: 0

README

lexicon

Reusable Golang library to provide an API to multilingual word list files.

Status

Ready to use

Programming notes

See abbreviation for a list of abbreviations used.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CntChars

func CntChars(words map[string]bool) map[rune]int

CntChars counts all the characters in a language lexicon.

func CntSubstrs

func CntSubstrs(words map[string]bool, length int) map[string]int

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

func ListSubstrs(word string, length int) []string

ListSubstrs lists all the substrings of a word of given length.

func LoadAllLangs

func LoadAllLangs(langDir string) map[string]map[string]bool

LoadAllLangs loads all the language files.

func LoadLang

func LoadLang(langFile string) map[string]bool

LoadLang loads a language file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL