Versions in this module Expand all Collapse all v0 v0.1.0 Jun 29, 2018 Changes in this version + const DefaultDictionaryCacheSize + const DefaultDictionaryLocation + const EnvVariableDictLocation + const KeyLangFrom + const KeyLangTo + const LookupOperationType + func GetArrayFromJsonByPath(data []byte, path string) ([]*gabs.Container, error) + func IsWordValid(word string) bool + func ReadFileContent(file string) (string, error) + func RunHttpRequest(url string, optional ...map[string]interface{}) ([]byte, error) + func SeekFileLocation(location string, envVariableName string) (string, error) + type AdvanceSuffleRule interface + Shuffle func(sequence string, optionalArgs ...map[string]interface{}) ([]string, error) + type CambridgeRule struct + func (r *CambridgeRule) Shuffle(oldText string) (string, error) + type DLGlosbe struct + func NewGlosbeEngine() *DLGlosbe + func (d *DLGlosbe) Lookup(word string, optionalParams map[string]interface{}) ([]DictionaryLookupResult, error) + func (d *DLGlosbe) Source() string + type DLPearson struct + func NewPearsonEngine() *DLPearson + func (d *DLPearson) Lookup(word string, optionalParams map[string]interface{}) ([]DictionaryLookupResult, error) + func (d *DLPearson) Source() string + type DictionaryLookup struct + func NewDictionaryLookup(cacheSize ...int) *DictionaryLookup + func (d *DictionaryLookup) Lookup(word string, optionalParams map[string]interface{}) ([]DictionaryLookupResult, error) + type DictionaryLookupEngine interface + Lookup func(word string, optionalParams map[string]interface{}) ([]DictionaryLookupResult, error) + Source func() string + type DictionaryLookupResult struct + Language string + Text string + func NewDictionaryLookupResult(text, lang string) DictionaryLookupResult + type DictionaryMatcher struct + func NewDictionaryMatcher(location ...string) DictionaryMatcher + func (d *DictionaryMatcher) MatchWord(word string) (bool, error) + type GramSequencer struct + Sequence string + func NewGramSequencer(sequence string, minSeqSize, maxSeqSize int, matcherRule MatcherRule, ...) GramSequencer + func NewGramSequencerSimple(sequence string) GramSequencer + func (g *GramSequencer) GenerateValidSequences() error + func (g *GramSequencer) GetValidSequences() []string + type MatcherRule interface + MatchWord func(word string) (bool, error) + type SequenceShufflerRule struct + MaxGramSize int + MinGramSize int + func NewSequenceShufflerRule(minSize, maxSize int, sequence string) SequenceShufflerRule + func (s *SequenceShufflerRule) Shuffle(sequence string, optionalArgs ...map[string]interface{}) ([]string, error) + type ShuffleRule interface + Shuffle func(oldText string) (string, error) + type Shuffler struct + Location string + Rule ShuffleRule + func NewShuffler(location string, shuffleRule ...ShuffleRule) Shuffler + func (s *Shuffler) GetShuffleGrams() []string + func (s *Shuffler) GetShuffleText() string + func (s *Shuffler) ShuffleText(oldText ...string) (string, error)