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 ¶
func IsProperNoun ¶ added in v0.0.18
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.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.