dictionary

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dictionary

type Dictionary struct {
	Entries map[string]string
	// contains filtered or unexported fields
}

func (*Dictionary) GetEntry

func (d *Dictionary) GetEntry(word string) string

GetEntry

func (*Dictionary) Load

func (d *Dictionary) Load(path string)

Load

func (*Dictionary) Version

func (d *Dictionary) Version() string

Version not used but could be

type DictionarySearch

type DictionarySearch struct {
	Dictionary *Dictionary
	// contains filtered or unexported fields
}

func NewDictionarySearch

func NewDictionarySearch() *DictionarySearch

func (*DictionarySearch) AugmentedSearch

func (ds *DictionarySearch) AugmentedSearch(orthography string) string

AugmentedSearch first looks in main dictionary to see if word is there. If not, it tries the main dictionary without suffixes, and if found, tacks on the appropriate ending.

func (*DictionarySearch) GetEntry

func (ds *DictionarySearch) GetEntry(word string) string

GetEntry returns the

func (*DictionarySearch) Load

func (ds *DictionarySearch) Load(path string)

Load

func (*DictionarySearch) Version

func (ds *DictionarySearch) Version() string

Version returns the dictionary version

Jump to

Keyboard shortcuts

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