german

package
v0.0.0-...-fb119ec Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseWords

func ParseWords(input []byte) ([]entity.Word, error)

func SuperwordToAdjective

func SuperwordToAdjective(superword Superword) entity.Adjective

func SuperwordToAny

func SuperwordToAny(superword Superword) entity.Any

func SuperwordToNoun

func SuperwordToNoun(superword Superword) entity.Noun

func SuperwordToVerb

func SuperwordToVerb(superword Superword) entity.Verb

func SuperwordsToWords

func SuperwordsToWords(superwords []Superword) []entity.Word

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"`
}

func (Superword) GetId

func (s Superword) GetId() bson.ObjectId

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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