Documentation ¶
Overview ¶
Chinese-English dictionary type definitions
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NORMAL = map[rune]rune{
'ā': 'a',
'á': 'a',
'ǎ': 'a',
'à': 'a',
'ē': 'e',
'é': 'e',
'ě': 'e',
'è': 'e',
'ī': 'i',
'í': 'i',
'ǐ': 'i',
'ì': 'i',
'ō': 'o',
'ó': 'o',
'ǒ': 'o',
'ò': 'o',
'ū': 'u',
'ú': 'u',
'ǔ': 'u',
'ù': 'u',
'Ā': 'a',
'Á': 'a',
'Ǎ': 'a',
'À': 'a',
'Ē': 'e',
'É': 'e',
'Ě': 'e',
'È': 'e',
'Ī': 'i',
'Í': 'i',
'Ǐ': 'i',
'Ì': 'i',
'Ō': 'o',
'Ó': 'o',
'Ǒ': 'o',
'Ò': 'o',
'Ū': 'u',
'Ú': 'u',
'Ǔ': 'u',
'Ù': 'u',
}
Functions ¶
This section is empty.
Types ¶
type DictionaryConfig ¶ added in v0.0.23
DictionaryConfig encapsulates parameters for dictionary configuration
type Word ¶
A top level word structure that may include multiple word senses
func CloneWord ¶ added in v0.0.18
Clones the headword definition without the attached array of word senses
func (Word) IsProperNoun ¶ added in v0.0.21
IsProperNoun tests whether the word is a proper noun. If the majority of word senses are proper nouns, then the word is marked as a proper noun.
type WordSense ¶
type WordSense struct {
Id, HeadwordId int
Simplified, Traditional, Pinyin, English, Grammar, Concept, ConceptCN, Domain,
DomainCN, Subdomain, SubdomainCN, Image, MP3, Notes string
}
Defines a single sense of a Chinese word
func (*WordSense) IsFunctionWord ¶ added in v0.0.19
Tests whether the word is a function word
type WordSenses ¶ added in v0.0.22
type WordSenses []WordSense
May be sorted into descending order with most frequent bigram first
func (WordSenses) Len ¶ added in v0.0.22
func (senses WordSenses) Len() int
func (WordSenses) Less ¶ added in v0.0.22
func (senses WordSenses) Less(i, j int) bool
func (WordSenses) Swap ¶ added in v0.0.22
func (senses WordSenses) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.