Documentation ¶
Index ¶
- Constants
- type Lemma
- func (l *Lemma) Article() (string, error)
- func (l *Lemma) Gender() (string, error)
- func (l *Lemma) IsNoun() bool
- func (l *Lemma) PartOfSpeech() string
- func (l *Lemma) PartOfSpeechDetails() PartOfSpeechDetails
- func (l *Lemma) PluralForm() (string, error)
- func (l *Lemma) SingularForm() (string, error)
- func (l *Lemma) Word() string
- type P
- type Paradigm
- type PartOfSpeech
- type PartOfSpeechDetails
- type SearchParameters
Constants ¶
View Source
const (
DefaultDatabase = "gig_pro_wrdlst"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lemma ¶
type Lemma struct { DiminutiveInfo string `xml:"diminutive_info"` Diminutives string `xml:"diminutives"` EntryType string `xml:"entry_type"` ExternalLink string `xml:"external_link"` Gloss string `xml:"gloss"` Keurmerk bool `xml:"keurmerk"` Label string `xml:"label"` Lemma string `xml:"lemma"` LemmaID int `xml:"lemma_id"` Message string `xml:"message"` Nuancerende string `xml:"nuancerende_opmerking"` Online bool `xml:"online"` POS string `xml:"lemma_part_of_speech"` P P `xml:"paradigm"` Parent string `xml:"parent"` PartNumber int `xml:"part_number"` Pronounciation string `xml:"pronounciation"` Source string `xml:"source"` Subset string `xml:"subset"` Taaladvies string `xml:"taaladvies"` Taalvariant string `xml:"taalvariant"` Trademark bool `xml:"trademark"` VerbFeatures string `xml:"verb_features"` Wordparts string `xml:"wordparts"` WordpartsInfo string `xml:"wordparts_info"` }
func SearchNouns ¶
func SearchVerbs ¶
func SearchWithParams ¶
func SearchWithParams(params *SearchParameters) ([]Lemma, error)
func (*Lemma) PartOfSpeech ¶
func (*Lemma) PartOfSpeechDetails ¶
func (l *Lemma) PartOfSpeechDetails() PartOfSpeechDetails
func (*Lemma) PluralForm ¶
func (*Lemma) SingularForm ¶
type Paradigm ¶
type Paradigm struct { Arch bool `xml:"arch"` GroupLabel string `xml:"group_label"` Hyphenation string `xml:"hyphenation"` POS string `xml:"part_of_speech"` Position int `xml:"position"` Wordform string `xml:"wordform"` WordformID int `xml:"wordform_id"` }
func (*Paradigm) PartOfSpeech ¶
PartOfSpeech returns the part of speech of the paradigm.
func (*Paradigm) PartOfSpeechDetails ¶
func (p *Paradigm) PartOfSpeechDetails() PartOfSpeechDetails
type PartOfSpeech ¶
type PartOfSpeech int
const ( Adverb PartOfSpeech = iota // bijwoord Adjective // bijvoeglijk naamwoord Verb // werkwoord Noun // zelfstandig naamwoord Preposition // voorzetsel Conjunction // voegwoord Pronoun // voornaamwoord Numeral // telwoord Interjection // tussenwerpsel Other // overig )
func (PartOfSpeech) String ¶
func (p PartOfSpeech) String() string
func (PartOfSpeech) ToEnglish ¶
func (p PartOfSpeech) ToEnglish() string
type PartOfSpeechDetails ¶
type SearchParameters ¶
type SearchParameters struct { WordForm string `validate:"required"` PartsOfSpeech []PartOfSpeech Paradigm bool Diminutive bool }
func NewSearchParameters ¶
func NewSearchParameters(word string, partsOfSpeech []PartOfSpeech) *SearchParameters
func (*SearchParameters) ToQueryString ¶
func (p *SearchParameters) ToQueryString() string
ToQueryString returns the query string for this search parameter.
Click to show internal directories.
Click to hide internal directories.