Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build builds all dictionaries into subdirectories of the provided path, which should be empty.
Types ¶
type Entry ¶
type Entry struct { Terms []string // matched terms (will be normalized) Name string // Pronunciation string // optional MeaningGroups []EntryMeaning // Info string // optional; e.g., etymology Source string // optional }
Entry contains a single result.
Name • Pronunciation ... Info Source
type EntryMeaning ¶
type EntryMeaning struct { Info []string // optional Meanings []EntryMeaningItem // WordVariants []string // for sorting results by relevance; not used for matching or display, so it can be imperfect (note that the headword is also checked first) }
EntryMeaning contains the definitions for one sub-form of a word.
Info[0] — Info[*] <-- like parts of speech, word forms, etc
- [Meanings[0].Tags[0]] [Meanings[0].Tags[*]] Meanings[0].Text Meanings[0].Example <-- can be disabled
- Meanings[*]
type EntryMeaningItem ¶
type EntryMeaningItem struct { Tags []string // optional Text string // Examples []string // optional }
EntryMeaningItem contains a single definition.
Click to show internal directories.
Click to hide internal directories.