Documentation ¶
Index ¶
- func ParseWords(input []byte) ([]entity.Word, error)
- func SuperwordToAdjective(superword Superword) entity.Adjective
- func SuperwordToAny(superword Superword) entity.Any
- func SuperwordToNoun(superword Superword) entity.Noun
- func SuperwordToVerb(superword Superword) entity.Verb
- func SuperwordsToWords(superwords []Superword) []entity.Word
- type Dictionary
- type Superword
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SuperwordToAdjective ¶
func SuperwordToAny ¶
func SuperwordToNoun ¶
func SuperwordToVerb ¶
func SuperwordsToWords ¶
Types ¶
type Dictionary ¶
type Dictionary struct { Nouns []entity.Noun `bson:"nouns" json:"nouns,omitempty"` Verbs []entity.Verb `bson:"verbs" json:"verbs,omitempty"` Adjectives []entity.Adjective `bson:"adjectives" json:"adjectives,omitempty"` Words map[string][]entity.Any `bson:"words" json:"words,omitempty"` }
func NewDictionary ¶
func NewDictionary() Dictionary
func ParseDictionary ¶
func ParseDictionary(input []byte) (Dictionary, error)
func SuperwordsToDictionary ¶
func SuperwordsToDictionary(superwords []Superword) Dictionary
func (*Dictionary) GetCount ¶
func (d *Dictionary) GetCount() int
type Superword ¶
type Superword struct { entity.DefaultWord `bson:"word" json:"word"` Id bson.ObjectId `bson:"_id,omitempty" json:"_id,omitempty"` Auxiliary []entity.Auxiliary `bson:"auxiliary" json:"auxiliary,omitempty"` Prefix entity.Prefix `bson:"prefix" json:"prefix,omitempty"` Noun string `bson:"noun" json:"noun,omitempty"` Adjective string `bson:"adjective" json:"adjective,omitempty"` PastParticiple []string `bson:"pastParticiple" json:"pastParticiple,omitempty"` Preterite []string `bson:"preterite" json:"preterite,omitempty"` S1 []string `bson:"s1" json:"s1,omitempty"` S2 []string `bson:"s2" json:"s2,omitempty"` S3 []string `bson:"s3" json:"s3,omitempty"` P1 []string `bson:"p1" json:"p1,omitempty"` P2 []string `bson:"p2" json:"p2,omitempty"` P3 []string `bson:"p3" json:"p3,omitempty"` Reflexive entity.Reflexive `bson:"reflexive" json:"reflexive,omitempty"` Arguments []entity.Argument `bson:"arguments" json:"arguments,omitempty"` Articles []entity.Article `bson:"article" json:"article,omitempty"` Plural []string `bson:"plural" json:"plural,omitempty"` Genitive []string `bson:"genitive" json:"genitive,omitempty"` IsPluralOnly bool `bson:"plural_only" json:"plural_only,omitempty"` Comparative []string `bson:"comparative" json:"comparative,omitempty"` Superlative []string `bson:"superlative" json:"superlative,omitempty"` }
Click to show internal directories.
Click to hide internal directories.