types

package module
v0.0.0-...-6995082 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Abbreviation = PartOfSpeech{Buf: POSabv, Label: "abbreviation"}
View Source
var Adfix = PartOfSpeech{Buf: POSadf, Label: "adfix"}
View Source
var AdjectivalPreNoun = PartOfSpeech{Buf: POSadj_pn, Label: "pre-noun adjectival (rentaishi)"}
View Source
var Adjective = PartOfSpeech{Buf: POSadj, Label: "adjective"}
View Source
var AdjectiveKari = PartOfSpeech{Buf: POSadj_kari, Label: "'kari' adjective (archaic)"}
View Source
var AdjectiveKu = PartOfSpeech{Buf: POSadj_ku, Label: "'ku' adjective (archaic)"}
View Source
var AdjectiveNari = PartOfSpeech{Buf: POSadj_nari, Label: "archaic/formal form of na-adjective"}
View Source
var AdjectiveNoun = PartOfSpeech{Buf: POSadj_na, Label: "adjectival nouns or quasi-adjectives (keiyodoshi)"}
View Source
var AdjectivePhrase = PartOfSpeech{Buf: POSphr_adj, Label: "adjective phrase"}
View Source
var AdjectiveShiku = PartOfSpeech{Buf: POSadj_shiku, Label: "'shiku' adjective (archaic)"}
View Source
var AdjectiveTaru = PartOfSpeech{Buf: POSadj_t, Label: "'taru' adjective"}
View Source
var AdjectiveYoiIi = PartOfSpeech{Buf: POSadj_ix, Label: "adjective (keiyoushi) - yoi/ii class"}
View Source
var Adverb = PartOfSpeech{Buf: POSadv, Label: "adverb"}
View Source
var AdverbTo = PartOfSpeech{Buf: POSadv_to, Label: "adverb taking the 'to' particle"}
View Source
var AdverbialNoun = PartOfSpeech{Buf: POSn_adv, Label: "adverbial noun (fukushitekimeishi)"}
View Source
var AdverbialPhrase = PartOfSpeech{Buf: POSphr_adv, Label: "adverbial phrase"}
View Source
var Affix = PartOfSpeech{Buf: POSaff, Label: "affix"}
View Source
var Auxiliary = PartOfSpeech{Buf: POSaux, Label: "auxiliary"}
View Source
var AuxiliaryAdjective = PartOfSpeech{Buf: POSaux_adj, Label: "auxiliary adjective"}
View Source
var AuxiliaryVerb = PartOfSpeech{Buf: POSaux_v, Label: "auxiliary verb"}
View Source
var Character = PartOfSpeech{Buf: POSchr, Label: "character"}
View Source
var Circumfix = PartOfSpeech{Buf: POScf, Label: "circumfix"}
View Source
var Conjunction = PartOfSpeech{Buf: POSconj, Label: "conjunction"}
View Source
var CoordinatingConjunction = PartOfSpeech{Buf: POSconj_c, Label: "coordinating conjunction"}
View Source
var Copula = PartOfSpeech{Buf: POScop, Label: "copula"}
View Source
var Counter = PartOfSpeech{Buf: POSctr, Label: "counter"}
View Source
var Determiner = PartOfSpeech{Buf: POSdet, Label: "determiner"}
View Source
var EnumNamesPOS = map[POS]string{}/* 114 elements not displayed */
View Source
var EnumValuesPOS = map[string]POS{}/* 114 elements not displayed */
View Source
var Expression = PartOfSpeech{Buf: POSexpr, Label: "expression"}
View Source
var Infix = PartOfSpeech{Buf: POSinf, Label: "infix"}
View Source
var Interfix = PartOfSpeech{Buf: POSintf, Label: "interfix"}
View Source
var Interjection = PartOfSpeech{Buf: POSintj, Label: "interjection"}
View Source
var IntransitiveVerb = PartOfSpeech{Buf: POSvi, Label: "intransitive verb"}
View Source
var Name = PartOfSpeech{Buf: POSname, Label: "name"}
View Source
var Noun = PartOfSpeech{Buf: POSn, Label: "noun"}
View Source
var NounNo = PartOfSpeech{Buf: POSadj_no, Label: "nouns which may take the genitive case particle 'no'"}
View Source
var NounPrefix = PartOfSpeech{Buf: POSn_pref, Label: "noun, used as a prefix"}
View Source
var NounSuffix = PartOfSpeech{Buf: POSn_suf, Label: "noun, used as a suffix"}
View Source
var NounTemporal = PartOfSpeech{Buf: POSn_t, Label: "noun (temporal) (jisoumeishi)"}
View Source
var NounVerbPrenominal = PartOfSpeech{Buf: POSadj_f, Label: "noun or verb acting prenominally"}
View Source
var Numeric = PartOfSpeech{Buf: POSnum, Label: "numeric"}
View Source
var Particle = PartOfSpeech{Buf: POSpart, Label: "particle"}
View Source
var Phrase = PartOfSpeech{Buf: POSphr, Label: "phrase"}
View Source
var Postposition = PartOfSpeech{Buf: POSpostp, Label: "postposition"}
View Source
var Prefix = PartOfSpeech{Buf: POSpref, Label: "prefix"}
View Source
var Preposition = PartOfSpeech{Buf: POSprep, Label: "preposition"}
View Source
var PrepositionalPhrase = PartOfSpeech{Buf: POSphr_prep, Label: "prepositional phrase"}
View Source
var Pronoun = PartOfSpeech{Buf: POSpron, Label: "pronoun"}
View Source
var ProperNoun = PartOfSpeech{Buf: POSpropn, Label: "proper noun"}
View Source
var Proverb = PartOfSpeech{Buf: POSprov, Label: "proverb"}
View Source
var Punctuation = PartOfSpeech{Buf: POSpunc, Label: "punctuation"}
View Source
var SubordinatingConjunction = PartOfSpeech{Buf: POSconj_s, Label: "subordinating conjunction"}
View Source
var Suffix = PartOfSpeech{Buf: POSsuff, Label: "suffix"}
View Source
var Symbol = PartOfSpeech{Buf: POSsym, Label: "symbol"}
View Source
var TransitiveVerb = PartOfSpeech{Buf: POSvt, Label: "transitive verb"}
View Source
var Unknown = PartOfSpeech{Buf: POSun, Label: "unknown"}
View Source
var Verb = PartOfSpeech{Buf: POSv, Label: "verb"}
View Source
var VerbGodanBu = PartOfSpeech{Buf: POSv5b, Label: "Godan verb with 'bu' ending"}
View Source
var VerbGodanGu = PartOfSpeech{Buf: POSv5g, Label: "Godan verb with 'gu' ending"}
View Source
var VerbGodanKu = PartOfSpeech{Buf: POSv5k, Label: "Godan verb with 'ku' ending"}
View Source
var VerbGodanMu = PartOfSpeech{Buf: POSv5m, Label: "Godan verb with 'mu' ending"}
View Source
var VerbGodanNu = PartOfSpeech{Buf: POSv5n, Label: "Godan verb with 'nu' ending"}
View Source
var VerbGodanRu = PartOfSpeech{Buf: POSv5r, Label: "Godan verb with 'ru' ending"}
View Source
var VerbGodanRuIrregular = PartOfSpeech{Buf: POSv5r_i, Label: "Godan verb with 'ru' ending (irregular verb)"}
View Source
var VerbGodanSpecialAru = PartOfSpeech{Buf: POSv5aru, Label: "Godan verb - -aru special class"}
View Source
var VerbGodanSpecialIkuYuku = PartOfSpeech{Buf: POSv5k_s, Label: "Godan verb - Iku/Yuku special class"}
View Source
var VerbGodanSu = PartOfSpeech{Buf: POSv5s, Label: "Godan verb with 'su' ending"}
View Source
var VerbGodanTsu = PartOfSpeech{Buf: POSv5t, Label: "Godan verb with 'tsu' ending"}
View Source
var VerbGodanU = PartOfSpeech{Buf: POSv5u, Label: "Godan verb with 'u' ending"}
View Source
var VerbGodanUSpecial = PartOfSpeech{Buf: POSv5u_s, Label: "Godan verb with 'u' ending (special class)"}
View Source
var VerbGodanUruOldVerbOldFormOfEru = PartOfSpeech{Buf: POSv5uru, Label: "Godan verb - Uru old class verb (old form of Eru)"}
View Source
var VerbIchidan = PartOfSpeech{Buf: POSv1, Label: "Ichidan verb"}
View Source
var VerbIchidanSpecial = PartOfSpeech{Buf: POSv1_s, Label: "Ichidan verb - kureru special class"}
View Source
var VerbIchidanZuru = PartOfSpeech{Buf: POSvz, Label: "Ichidan verb - zuru verb (alternative form of -jiru verbs)"}
View Source
var VerbKuruSpecial = PartOfSpeech{Buf: POSvk, Label: "Kuru verb - special class"}
View Source
var VerbNidanBuLower = PartOfSpeech{Buf: POSv2b_s, Label: "Nidan verb (lower class) with 'bu' ending (archaic)"}
View Source
var VerbNidanBuUpper = PartOfSpeech{Buf: POSv2b_k, Label: "Nidan verb (upper class) with 'bu' ending (archaic)"}
View Source
var VerbNidanDzuLower = PartOfSpeech{Buf: POSv2d_s, Label: "Nidan verb (lower class) with 'dzu' ending (archaic)"}
View Source
var VerbNidanDzuUpper = PartOfSpeech{Buf: POSv2d_k, Label: "Nidan verb (upper class) with 'dzu' ending (archaic)"}
View Source
var VerbNidanGuLower = PartOfSpeech{Buf: POSv2g_s, Label: "Nidan verb (lower class) with 'gu' ending (archaic)"}
View Source
var VerbNidanGuUpper = PartOfSpeech{Buf: POSv2g_k, Label: "Nidan verb (upper class) with 'gu' ending (archaic)"}
View Source
var VerbNidanHuFuLower = PartOfSpeech{Buf: POSv2h_s, Label: "Nidan verb (lower class) with 'hu/fu' ending (archaic)"}
View Source
var VerbNidanHuFuUpper = PartOfSpeech{Buf: POSv2h_k, Label: "Nidan verb (upper class) with 'hu/fu' ending (archaic)"}
View Source
var VerbNidanKuLower = PartOfSpeech{Buf: POSv2k_s, Label: "Nidan verb (lower class) with 'ku' ending (archaic)"}
View Source
var VerbNidanKuUpper = PartOfSpeech{Buf: POSv2k_k, Label: "Nidan verb (upper class) with 'ku' ending (archaic)"}
View Source
var VerbNidanMuLower = PartOfSpeech{Buf: POSv2m_s, Label: "Nidan verb (lower class) with 'mu' ending (archaic)"}
View Source
var VerbNidanMuUpper = PartOfSpeech{Buf: POSv2m_k, Label: "Nidan verb (upper class) with 'mu' ending (archaic)"}
View Source
var VerbNidanNuLower = PartOfSpeech{Buf: POSv2n_s, Label: "Nidan verb (lower class) with 'nu' ending (archaic)"}
View Source
var VerbNidanRuLower = PartOfSpeech{Buf: POSv2r_s, Label: "Nidan verb (lower class) with 'ru' ending (archaic)"}
View Source
var VerbNidanRuUpper = PartOfSpeech{Buf: POSv2r_k, Label: "Nidan verb (upper class) with 'ru' ending (archaic)"}
View Source
var VerbNidanSuLower = PartOfSpeech{Buf: POSv2s_s, Label: "Nidan verb (lower class) with 'su' ending (archaic)"}
View Source
var VerbNidanTsuLower = PartOfSpeech{Buf: POSv2t_s, Label: "Nidan verb (lower class) with 'tsu' ending (archaic)"}
View Source
var VerbNidanTsuUpper = PartOfSpeech{Buf: POSv2t_k, Label: "Nidan verb (upper class) with 'tsu' ending (archaic)"}
View Source
var VerbNidanU = PartOfSpeech{Buf: POSv2a_s, Label: "Nidan verb with 'u' ending (archaic)"}
View Source
var VerbNidanUWeLower = PartOfSpeech{Buf: POSv2w_s, Label: "Nidan verb (lower class) with 'u' ending and 'we' conjugation (archaic)"}
View Source
var VerbNidanYuLower = PartOfSpeech{Buf: POSv2y_s, Label: "Nidan verb (lower class) with 'yu' ending (archaic)"}
View Source
var VerbNidanYuUpper = PartOfSpeech{Buf: POSv2y_k, Label: "Nidan verb (upper class) with 'yu' ending (archaic)"}
View Source
var VerbNidanZuLower = PartOfSpeech{Buf: POSv2z_s, Label: "Nidan verb (lower class) with 'zu' ending (archaic)"}
View Source
var VerbNuIrregular = PartOfSpeech{Buf: POSvn, Label: "irregular nu verb"}
View Source
var VerbRuIrregular = PartOfSpeech{Buf: POSvr, Label: "irregular ru verb, plain form ends with -ri"}
View Source
var VerbSu = PartOfSpeech{Buf: POSvs_c, Label: "su verb - precursor to the modern suru"}
View Source
var VerbSuru = PartOfSpeech{Buf: POSvs, Label: "noun or participle which takes the aux. verb suru"}
View Source
var VerbSuruIncluded = PartOfSpeech{Buf: POSvs_i, Label: "suru verb - included"}
View Source
var VerbSuruSpecial = PartOfSpeech{Buf: POSvs_s, Label: "suru verb - special class"}
View Source
var VerbUnspecified = PartOfSpeech{Buf: POSv_unspec, Label: "verb unspecified"}
View Source
var VerbYodanBu = PartOfSpeech{Buf: POSv4b, Label: "Yodan verb with 'bu' ending (archaic)"}
View Source
var VerbYodanGu = PartOfSpeech{Buf: POSv4g, Label: "Yodan verb with 'gu' ending (archaic)"}
View Source
var VerbYodanHuFu = PartOfSpeech{Buf: POSv4h, Label: "Yodan verb with 'hu/fu' ending (archaic)"}
View Source
var VerbYodanKu = PartOfSpeech{Buf: POSv4k, Label: "Yodan verb with 'ku' ending (archaic)"}
View Source
var VerbYodanMu = PartOfSpeech{Buf: POSv4m, Label: "Yodan verb with 'mu' ending (archaic)"}
View Source
var VerbYodanNu = PartOfSpeech{Buf: POSv4n, Label: "Yodan verb with 'nu' ending (archaic)"}
View Source
var VerbYodanRu = PartOfSpeech{Buf: POSv4r, Label: "Yodan verb with 'ru' ending (archaic)"}
View Source
var VerbYodanSu = PartOfSpeech{Buf: POSv4s, Label: "Yodan verb with 'su' ending (archaic)"}
View Source
var VerbYodanTsu = PartOfSpeech{Buf: POSv4t, Label: "Yodan verb with 'tsu' ending (archaic)"}

Functions

func DefinitionAddExamples

func DefinitionAddExamples(builder *flatbuffers.Builder, examples flatbuffers.UOffsetT)

func DefinitionAddId

func DefinitionAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT)

func DefinitionAddNotes

func DefinitionAddNotes(builder *flatbuffers.Builder, notes flatbuffers.UOffsetT)

func DefinitionAddValue

func DefinitionAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT)

func DefinitionEnd

func DefinitionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func DefinitionStart

func DefinitionStart(builder *flatbuffers.Builder)

func DefinitionStartExamplesVector

func DefinitionStartExamplesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func DefinitionStartNotesVector

func DefinitionStartNotesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func DictionaryAddEntries

func DictionaryAddEntries(builder *flatbuffers.Builder, entries flatbuffers.UOffsetT)

func DictionaryAddId

func DictionaryAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT)

func DictionaryAddName

func DictionaryAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func DictionaryEnd

func DictionaryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func DictionaryStart

func DictionaryStart(builder *flatbuffers.Builder)

func DictionaryStartEntriesVector

func DictionaryStartEntriesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func EncodeDictionary

func EncodeDictionary(dictionary Dictionary) ([]byte, error)

EncodeDictionary encodes a dictionary struct into a byte array

func EncodeEntry

func EncodeEntry(entry Entry) ([]byte, error)

EncodeDictionary encodes an entry struct into a byte array

func EntryAddEtymologies

func EntryAddEtymologies(builder *flatbuffers.Builder, etymologies flatbuffers.UOffsetT)

func EntryAddKey

func EntryAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT)

func EntryAddSee

func EntryAddSee(builder *flatbuffers.Builder, see flatbuffers.UOffsetT)

func EntryAddTerm

func EntryAddTerm(builder *flatbuffers.Builder, term flatbuffers.UOffsetT)

func EntryEnd

func EntryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func EntryKeyCompare

func EntryKeyCompare(o1, o2 flatbuffers.UOffsetT, buf []byte) bool

func EntryStart

func EntryStart(builder *flatbuffers.Builder)

func EntryStartEtymologiesVector

func EntryStartEtymologiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func EtymologyAddDescription

func EtymologyAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT)

func EtymologyAddId

func EtymologyAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT)

func EtymologyAddPronunciation

func EtymologyAddPronunciation(builder *flatbuffers.Builder, pronunciation flatbuffers.UOffsetT)

func EtymologyAddSenses

func EtymologyAddSenses(builder *flatbuffers.Builder, senses flatbuffers.UOffsetT)

func EtymologyEnd

func EtymologyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func EtymologyStart

func EtymologyStart(builder *flatbuffers.Builder)

func EtymologyStartSensesVector

func EtymologyStartSensesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func GroupAddDefinitions

func GroupAddDefinitions(builder *flatbuffers.Builder, definitions flatbuffers.UOffsetT)

func GroupAddDescription

func GroupAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT)

func GroupAddId

func GroupAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT)

func GroupEnd

func GroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func GroupStart

func GroupStart(builder *flatbuffers.Builder)

func GroupStartDefinitionsVector

func GroupStartDefinitionsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func NestedEntriesToRepresentables

func NestedEntriesToRepresentables(entries [][]Entry) [][]EntryRepresentable

func NoteAddExamples

func NoteAddExamples(builder *flatbuffers.Builder, examples flatbuffers.UOffsetT)

func NoteAddId

func NoteAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT)

func NoteAddValue

func NoteAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT)

func NoteEnd

func NoteEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func NoteStart

func NoteStart(builder *flatbuffers.Builder)

func NoteStartExamplesVector

func NoteStartExamplesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SenseAddDefinitions

func SenseAddDefinitions(builder *flatbuffers.Builder, definitions flatbuffers.UOffsetT)

func SenseAddGroups

func SenseAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT)

func SenseAddPos

func SenseAddPos(builder *flatbuffers.Builder, pos POS)

func SenseEnd

func SenseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func SenseKeyCompare

func SenseKeyCompare(o1, o2 flatbuffers.UOffsetT, buf []byte) bool

func SenseStart

func SenseStart(builder *flatbuffers.Builder)

func SenseStartDefinitionsVector

func SenseStartDefinitionsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SenseStartGroupsVector

func SenseStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func Serialize

func Serialize(b Serializable) []byte

func SetMarkdownProcessingStrategy

func SetMarkdownProcessingStrategy(strategy MarkdownStrategy)

Types

type Definition

type Definition struct {
	// contains filtered or unexported fields
}

func GetRootAsDefinition

func GetRootAsDefinition(buf []byte, offset flatbuffers.UOffsetT) *Definition

func GetSizePrefixedRootAsDefinition

func GetSizePrefixedRootAsDefinition(buf []byte, offset flatbuffers.UOffsetT) *Definition

func (*Definition) AsRepresentable

func (definition *Definition) AsRepresentable() DefinitionRepresentable

func (*Definition) Examples

func (rcv *Definition) Examples(j int) []byte

func (*Definition) ExamplesLength

func (rcv *Definition) ExamplesLength() int

func (*Definition) Id

func (rcv *Definition) Id() []byte

func (*Definition) Init

func (rcv *Definition) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Definition) Notes

func (rcv *Definition) Notes(obj *Note, j int) bool

func (*Definition) NotesLength

func (rcv *Definition) NotesLength() int

func (*Definition) Table

func (rcv *Definition) Table() flatbuffers.Table

func (*Definition) Value

func (rcv *Definition) Value() []byte

type DefinitionRepresentable

type DefinitionRepresentable struct {
	ID       string              `json:"id,omitempty" xml:"id,attr,omitempty"`
	Value    MDString            `json:"value,omitempty" xml:"value,attr"`
	Examples []string            `json:"examples,omitempty" xml:"example,omitempty"`
	Notes    []NoteRepresentable `json:"notes,omitempty" xml:"note,omitempty"`
}

func (*DefinitionRepresentable) AsBuffer

type Dictionary

type Dictionary struct {
	// contains filtered or unexported fields
}

func DecodeDictionary

func DecodeDictionary(b []byte) (*Dictionary, error)

DecodeDictionary decodes a byte array into a dictionary object

func GetRootAsDictionary

func GetRootAsDictionary(buf []byte, offset flatbuffers.UOffsetT) *Dictionary

func GetSizePrefixedRootAsDictionary

func GetSizePrefixedRootAsDictionary(buf []byte, offset flatbuffers.UOffsetT) *Dictionary

func (*Dictionary) AsRepresentable

func (dict *Dictionary) AsRepresentable() DictionaryRepresentable

func (*Dictionary) Entries

func (rcv *Dictionary) Entries(obj *Entry, j int) bool

func (*Dictionary) EntriesByKey

func (rcv *Dictionary) EntriesByKey(obj *Entry, key string) bool

func (*Dictionary) EntriesLength

func (rcv *Dictionary) EntriesLength() int

func (*Dictionary) Id

func (rcv *Dictionary) Id() []byte

func (*Dictionary) Init

func (rcv *Dictionary) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Dictionary) Name

func (rcv *Dictionary) Name() []byte

func (*Dictionary) Table

func (rcv *Dictionary) Table() flatbuffers.Table

type DictionaryRepresentable

type DictionaryRepresentable struct {
	ID      string                            `json:"id" xml:"id,attr,omitempty"`
	Name    string                            `json:"name" xml:"name,attr,omitempty"`
	Entries KVMap[string, EntryRepresentable] `json:"entries" xml:"entry"`
	XMLName xml.Name                          `json:"-" xml:"dictionary"`
}

func (*DictionaryRepresentable) AsBuffer

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func DecodeEntry

func DecodeEntry(b []byte) (*Entry, error)

DecodeDictionary decodes a byte array into an entry object

func GetRootAsEntry

func GetRootAsEntry(buf []byte, offset flatbuffers.UOffsetT) *Entry

func GetSizePrefixedRootAsEntry

func GetSizePrefixedRootAsEntry(buf []byte, offset flatbuffers.UOffsetT) *Entry

func (*Entry) AsRepresentable

func (entry *Entry) AsRepresentable() EntryRepresentable

func (*Entry) Etymologies

func (rcv *Entry) Etymologies(obj *Etymology, j int) bool

func (*Entry) EtymologiesLength

func (rcv *Entry) EtymologiesLength() int

func (*Entry) Init

func (rcv *Entry) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Entry) Key

func (rcv *Entry) Key() []byte

func (*Entry) LookupByKey

func (rcv *Entry) LookupByKey(key string, vectorLocation flatbuffers.UOffsetT, buf []byte) bool

func (*Entry) See

func (rcv *Entry) See() []byte

func (*Entry) Table

func (rcv *Entry) Table() flatbuffers.Table

func (*Entry) Term

func (rcv *Entry) Term() []byte

type EntryRepresentable

type EntryRepresentable struct {
	Term        string                   `json:"term" xml:"term,attr"`
	SeeAlso     string                   `json:"see,omitempty" xml:"see,attr,omitempty"`
	Etymologies []EtymologyRepresentable `json:"etymologies" xml:"ety,omitempty"`
	XMLName     xml.Name                 `json:"-" xml:"entry"`
}

func EntriesToRepresentables

func EntriesToRepresentables(entries []Entry) []EntryRepresentable

func (*EntryRepresentable) AsBuffer

func (entry *EntryRepresentable) AsBuffer(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func (EntryRepresentable) Key

func (entry EntryRepresentable) Key() string

type Etymology

type Etymology struct {
	// contains filtered or unexported fields
}

func GetRootAsEtymology

func GetRootAsEtymology(buf []byte, offset flatbuffers.UOffsetT) *Etymology

func GetSizePrefixedRootAsEtymology

func GetSizePrefixedRootAsEtymology(buf []byte, offset flatbuffers.UOffsetT) *Etymology

func (*Etymology) AsRepresentable

func (etymology *Etymology) AsRepresentable() EtymologyRepresentable

func (*Etymology) Description

func (rcv *Etymology) Description() []byte

func (*Etymology) Id

func (rcv *Etymology) Id() []byte

func (*Etymology) Init

func (rcv *Etymology) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Etymology) Pronunciation

func (rcv *Etymology) Pronunciation() []byte

func (*Etymology) Senses

func (rcv *Etymology) Senses(obj *Sense, j int) bool

func (*Etymology) SensesByKey

func (rcv *Etymology) SensesByKey(obj *Sense, key POS) bool

func (*Etymology) SensesLength

func (rcv *Etymology) SensesLength() int

func (*Etymology) Table

func (rcv *Etymology) Table() flatbuffers.Table

type EtymologyRepresentable

type EtymologyRepresentable struct {
	ID            string                                  `json:"id,omitempty" xml:"id,attr,omitempty"`
	Pronunciation string                                  `json:"pronunciation,omitempty" xml:"pronunciation,attr,omitempty"`
	Description   MDString                                `json:"description,omitempty" xml:"description,attr,omitempty"`
	Senses        KVMap[PartOfSpeech, SenseRepresentable] `json:"senses" xml:"sense"`
}

func (*EtymologyRepresentable) AsBuffer

type Group

type Group struct {
	// contains filtered or unexported fields
}

func GetRootAsGroup

func GetRootAsGroup(buf []byte, offset flatbuffers.UOffsetT) *Group

func GetSizePrefixedRootAsGroup

func GetSizePrefixedRootAsGroup(buf []byte, offset flatbuffers.UOffsetT) *Group

func (*Group) AsRepresentable

func (group *Group) AsRepresentable() GroupRepresentable

func (*Group) Definitions

func (rcv *Group) Definitions(obj *Definition, j int) bool

func (*Group) DefinitionsLength

func (rcv *Group) DefinitionsLength() int

func (*Group) Description

func (rcv *Group) Description() []byte

func (*Group) Id

func (rcv *Group) Id() []byte

func (*Group) Init

func (rcv *Group) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Group) Table

func (rcv *Group) Table() flatbuffers.Table

type GroupRepresentable

type GroupRepresentable struct {
	ID          string                    `json:"id,omitempty" xml:"id,attr,omitempty"`
	Description MDString                  `json:"description" xml:"description,attr,omitempty"`
	Definitions []DefinitionRepresentable `json:"definitions" xml:"definition"`
}

func (*GroupRepresentable) AsBuffer

func (group *GroupRepresentable) AsBuffer(builder *flatbuffers.Builder) flatbuffers.UOffsetT

type KVMap

type KVMap[K comparable, V Keyable[K]] map[K]V

func (KVMap[K, V]) Keys

func (m KVMap[K, V]) Keys() []K

func (KVMap[K, V]) MarshalXML

func (m KVMap[K, V]) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*KVMap[K, V]) UnmarshalXML

func (m *KVMap[K, V]) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (KVMap[K, V]) Values

func (m KVMap[K, V]) Values() []V

type Keyable

type Keyable[T comparable] interface {
	Key() T
}

type MDString

type MDString string

func (MDString) MarshalText

func (mds MDString) MarshalText() ([]byte, error)

func (MDString) String

func (mds MDString) String() string

type MarkdownStrategy

type MarkdownStrategy string
const (
	MarkdownStrategyHTML    MarkdownStrategy = "html"
	MarkdownStrategyText    MarkdownStrategy = "text"
	MarkdownStrategyDisable MarkdownStrategy = "disable"
)

func GetMarkdownStrategy

func GetMarkdownStrategy() MarkdownStrategy

type Note

type Note struct {
	// contains filtered or unexported fields
}

func GetRootAsNote

func GetRootAsNote(buf []byte, offset flatbuffers.UOffsetT) *Note

func GetSizePrefixedRootAsNote

func GetSizePrefixedRootAsNote(buf []byte, offset flatbuffers.UOffsetT) *Note

func (*Note) AsRepresentable

func (note *Note) AsRepresentable() NoteRepresentable

func (*Note) Examples

func (rcv *Note) Examples(j int) []byte

func (*Note) ExamplesLength

func (rcv *Note) ExamplesLength() int

func (*Note) Id

func (rcv *Note) Id() []byte

func (*Note) Init

func (rcv *Note) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Note) Table

func (rcv *Note) Table() flatbuffers.Table

func (*Note) Value

func (rcv *Note) Value() []byte

type NoteRepresentable

type NoteRepresentable struct {
	ID       string   `json:"id,omitempty" xml:"id,attr,omitempty"`
	Value    MDString `json:"value,omitempty" xml:"value,attr"`
	Examples []string `json:"examples,omitempty" xml:"example"`
}

func (*NoteRepresentable) AsBuffer

func (note *NoteRepresentable) AsBuffer(builder *flatbuffers.Builder) flatbuffers.UOffsetT

type POS

type POS int8
const (
	POSun        POS = 0
	POSadj       POS = 1
	POSadv       POS = 2
	POSart       POS = 3
	POSconj      POS = 4
	POSintj      POS = 5
	POSn         POS = 6
	POSpart      POS = 7
	POSpref      POS = 8
	POSprep      POS = 9
	POSpostp     POS = 10
	POSpron      POS = 11
	POSsuff      POS = 12
	POSv         POS = 13
	POSabv       POS = 14
	POSadf       POS = 15
	POSaff       POS = 16
	POSaux_adj   POS = 17
	POSaux_v     POS = 18
	POSaux       POS = 19
	POSchr       POS = 20
	POSconj_c    POS = 21
	POSconj_s    POS = 22
	POScop       POS = 23
	POScf        POS = 24
	POSctr       POS = 25
	POSdet       POS = 26
	POSexpr      POS = 27
	POSinf       POS = 28
	POSintf      POS = 29
	POSname      POS = 30
	POSnum       POS = 31
	POSphr_adv   POS = 32
	POSphr_adj   POS = 33
	POSphr_prep  POS = 34
	POSphr       POS = 35
	POSpropn     POS = 36
	POSprov      POS = 37
	POSpunc      POS = 38
	POSsym       POS = 39
	POSvi        POS = 40
	POSvt        POS = 41
	POSadj_f     POS = 42
	POSadj_ix    POS = 43
	POSadj_kari  POS = 44
	POSadj_ku    POS = 45
	POSadj_na    POS = 46
	POSadj_nari  POS = 47
	POSadj_no    POS = 48
	POSadj_pn    POS = 49
	POSadj_shiku POS = 50
	POSadj_t     POS = 51
	POSadv_to    POS = 52
	POSn_adv     POS = 53
	POSn_pref    POS = 54
	POSn_suf     POS = 55
	POSn_t       POS = 56
	POSv_unspec  POS = 57
	POSv1_s      POS = 58
	POSv1        POS = 59
	POSv2a_s     POS = 60
	POSv2b_k     POS = 61
	POSv2b_s     POS = 62
	POSv2d_k     POS = 63
	POSv2d_s     POS = 64
	POSv2g_k     POS = 65
	POSv2g_s     POS = 66
	POSv2h_k     POS = 67
	POSv2h_s     POS = 68
	POSv2k_k     POS = 69
	POSv2k_s     POS = 70
	POSv2m_k     POS = 71
	POSv2m_s     POS = 72
	POSv2n_s     POS = 73
	POSv2r_k     POS = 74
	POSv2r_s     POS = 75
	POSv2s_s     POS = 76
	POSv2t_k     POS = 77
	POSv2t_s     POS = 78
	POSv2w_s     POS = 79
	POSv2y_k     POS = 80
	POSv2y_s     POS = 81
	POSv2z_s     POS = 82
	POSv4b       POS = 83
	POSv4g       POS = 84
	POSv4h       POS = 85
	POSv4k       POS = 86
	POSv4m       POS = 87
	POSv4n       POS = 88
	POSv4r       POS = 89
	POSv4s       POS = 90
	POSv4t       POS = 91
	POSv5aru     POS = 92
	POSv5b       POS = 93
	POSv5g       POS = 94
	POSv5k_s     POS = 95
	POSv5k       POS = 96
	POSv5m       POS = 97
	POSv5n       POS = 98
	POSv5r_i     POS = 99
	POSv5r       POS = 100
	POSv5s       POS = 101
	POSv5t       POS = 102
	POSv5u_s     POS = 103
	POSv5u       POS = 104
	POSv5uru     POS = 105
	POSvk        POS = 106
	POSvn        POS = 107
	POSvr        POS = 108
	POSvs_c      POS = 109
	POSvs_i      POS = 110
	POSvs_s      POS = 111
	POSvs        POS = 112
	POSvz        POS = 113
)

func (POS) String

func (v POS) String() string

type PartOfSpeech

type PartOfSpeech struct {
	Label string
	Buf   POS
}

func (PartOfSpeech) MarshalText

func (p PartOfSpeech) MarshalText() ([]byte, error)

func (PartOfSpeech) MarshalXMLAttr

func (pos PartOfSpeech) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

func (PartOfSpeech) Tag

func (pos PartOfSpeech) Tag() string

func (*PartOfSpeech) UnmarshalText

func (p *PartOfSpeech) UnmarshalText(text []byte) error

func (*PartOfSpeech) UnmarshalXMLAttr

func (pos *PartOfSpeech) UnmarshalXMLAttr(attr xml.Attr) error

type Representable

type Representable interface {
	AsRepresentable() interface{}
}

type Sense

type Sense struct {
	// contains filtered or unexported fields
}

func GetRootAsSense

func GetRootAsSense(buf []byte, offset flatbuffers.UOffsetT) *Sense

func GetSizePrefixedRootAsSense

func GetSizePrefixedRootAsSense(buf []byte, offset flatbuffers.UOffsetT) *Sense

func (*Sense) AsRepresentable

func (sense *Sense) AsRepresentable() SenseRepresentable

func (*Sense) Definitions

func (rcv *Sense) Definitions(obj *Definition, j int) bool

func (*Sense) DefinitionsLength

func (rcv *Sense) DefinitionsLength() int

func (*Sense) Groups

func (rcv *Sense) Groups(obj *Group, j int) bool

func (*Sense) GroupsLength

func (rcv *Sense) GroupsLength() int

func (*Sense) Init

func (rcv *Sense) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Sense) LookupByKey

func (rcv *Sense) LookupByKey(key POS, vectorLocation flatbuffers.UOffsetT, buf []byte) bool

func (*Sense) MutatePos

func (rcv *Sense) MutatePos(n POS) bool

func (*Sense) Pos

func (rcv *Sense) Pos() POS

func (*Sense) Table

func (rcv *Sense) Table() flatbuffers.Table

type SenseRepresentable

type SenseRepresentable struct {
	POS         PartOfSpeech              `json:"-" xml:"pos,attr,omitempty"`
	Groups      []GroupRepresentable      `json:"groups,omitempty" xml:"group,omitempty"`
	Definitions []DefinitionRepresentable `json:"definitions,omitempty" xml:"definition,omitempty"`
	XMLName     xml.Name                  `json:"-" xml:"sense"`
}

func (*SenseRepresentable) AsBuffer

func (sense *SenseRepresentable) AsBuffer(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func (SenseRepresentable) Key

func (sense SenseRepresentable) Key() PartOfSpeech

func (*SenseRepresentable) UnmarshalXML

func (sr *SenseRepresentable) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Serializable

type Serializable interface {
	AsBuffer(builder *flatbuffers.Builder) flatbuffers.UOffsetT
}

Jump to

Keyboard shortcuts

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