Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchWords ¶
Types ¶
type ArticleContent ¶
type ArticleContent struct {
Title string `json:"title"`
HTML string `json:"html"`
Language string `json:"language"`
WordInfo WordInfo `json:"word_info,omitempty"`
}
func FetchAndParseArticleForWord ¶
func FetchAndParseArticleForWord(word string, lang string) (*ArticleContent, error)
func RetrieveArticle ¶
func RetrieveArticle(word string) (*ArticleContent, error)
func RetrieveArticleForLanguage ¶
func RetrieveArticleForLanguage(word string, lang string) (*ArticleContent, error)
type EnglishWordInfo ¶
type EnglishWordInfo struct {
Word string `json:"word"` // The main word being described
Plural string `json:"plural"` // The plural form of the word
Etymology string `json:"etymology"` // Origin of the word and historical development
Definitions []string `json:"definitions"` // List of definitions or meanings of the word.
}
type GermanWordInfo ¶
type GermanWordInfo struct {
Word string `json:"word"` // The word being defined (e.g., "Baum").
GrammaticalCategory string `json:"grammatical_category"` // The grammatical category (e.g., noun).
Gender string `json:"gender"` // The grammatical gender of the word (e.g., masculine).
Singular string `json:"singular"` // The singular form of the word.
Plural string `json:"plural"` // The plural form of the word.
Definitions []string `json:"definitions"` // List of definitions or meanings of the word.
Etymology string `json:"etymology"` // Historical origin and linguistic evolution of the word.
Examples []string `json:"examples"` // Usage examples
Phrases []string `json:"phrases"` // Phrases used in everyday speech
}
type ParseResponse ¶
type WordInfo ¶
type WordInfo interface{}
func ParseArticle ¶
func ParseArticle(article *ArticleContent, lang string) (WordInfo, error)
Click to show internal directories.
Click to hide internal directories.