tpl

package
v0.0.0-...-2c36af7 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Borrow

type Borrow struct {
	Lang         string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	FromLang     string `lang:"true" json:"fromLang,omitempty" firestore:"fromLang,omitempty"`
	FromWord     string `json:"fromWord,omitempty" firestore:"fromWord,omitempty"`
	Alt          string `names:"alt" json:"alt,omitempty" firestore:"alt,omitempty"`
	Gloss        string `names:"t,gloss" json:"gloss,omitempty" firestore:"gloss,omitempty"`
	PartOfSpeech string `names:"pos" json:"partOfSpeech,omitempty" firestore:"partOfSpeech,omitempty"`
	Literal      string `names:"lit" json:"literal,omitempty" firestore:"literal,omitempty"`
}

https://en.wiktionary.org/wiki/Template:borrowing

type Cognate

type Cognate struct {
	Lang string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	Word string `json:"word,omitempty" firestore:"word,omitempty"`
}

https://en.wiktionary.org/wiki/Template:cognate

type Derived

type Derived struct {
	Lang         string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	FromLang     string `lang:"true" json:"fromLang,omitempty" firestore:"fromLang,omitempty"`
	FromWord     string `json:"fromWord,omitempty" firestore:"fromWord,omitempty"`
	Alt          string `names:"alt" json:"alt,omitempty" firestore:"alt,omitempty"`
	Gloss        string `names:"t,gloss" json:"gloss,omitempty" firestore:"gloss,omitempty"`
	PartOfSpeech string `names:"pos" json:"partOfSpeech,omitempty" firestore:"partOfSpeech,omitempty"`
	Literal      string `names:"lit" json:"literal,omitempty" firestore:"literal,omitempty"`
}

https://en.wiktionary.org/wiki/Template:derived

type DescTree

type DescTree struct {
	Lang string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	Word string `json:"word,omitempty" firestore:"word,omitempty"`
}

https://en.wiktionary.org/wiki/Template:desctree

type Descendant

type Descendant struct {
	Lang string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	Word string `json:"word,omitempty" firestore:"word,omitempty"`
}

https://en.wiktionary.org/wiki/Template:descendant

type Etyl

type Etyl struct {
	Lang string `names:"lang" lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
}

https://en.wiktionary.org/wiki/Template:etyl

type EtymTree

type EtymTree struct {
	Lang     string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	RootLang string `lang:"true" json:"rootLang,omitempty" firestore:"rootLang,omitempty"`
	Word     string `names:"branch_term" json:"word,omitempty" firestore:"word,omitempty"`
}

https://en.wiktionary.org/wiki/Template:etymtree

func (*EtymTree) ToEntryName

func (et *EtymTree) ToEntryName() string

type FormOf

type FormOf struct {
	Lang string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	Word string `json:"word,omitempty" firestore:"word,omitempty"`
	Alt  string `json:"alt,omitempty" firestore:"alt,omitempty"`

	Tag1  string `json:"tag1,omitempty" firestore:"tag1,omitempty"`
	Tag2  string `json:"tag2,omitempty" firestore:"tag2,omitempty"`
	Tag3  string `json:"tag3,omitempty" firestore:"tag3,omitempty"`
	Tag4  string `json:"tag4,omitempty" firestore:"tag4,omitempty"`
	Tag5  string `json:"tag5,omitempty" firestore:"tag5,omitempty"`
	Tag6  string `json:"tag6,omitempty" firestore:"tag6,omitempty"`
	Tag7  string `json:"tag7,omitempty" firestore:"tag7,omitempty"`
	Tag8  string `json:"tag8,omitempty" firestore:"tag8,omitempty"`
	Tag9  string `json:"tag9,omitempty" firestore:"tag9,omitempty"`
	Tag10 string `json:"tag10,omitempty" firestore:"tag10,omitempty"`

	Form string `json:"form,omityempty" firestore:"form,omitempty"`
}

https://en.wiktionary.org/wiki/Module:form_of https://en.wiktionary.org/wiki/Module:form_of/templates https://en.wiktionary.org/wiki/Template:plural_of https://en.wiktionary.org/wiki/Category:Form-of_templates

func (*FormOf) DisplayWord

func (fo *FormOf) DisplayWord() string

func (*FormOf) Text

func (fo *FormOf) Text() string

type FormOfGeneric

type FormOfGeneric struct {
	Lang       string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	Definition string `json:"definition,omitempty" firestore:"definition,omitempty"`
	Word       string `json:"word,omitempty" firestore:"word,omitempty"`
	Alt        string `json:"alt,omitempty" firestore:"alt,omitempty"`
}

https://en.wiktionary.org/wiki/Template:form_of

func (*FormOfGeneric) DisplayWord

func (fog *FormOfGeneric) DisplayWord() string

func (*FormOfGeneric) Text

func (fog *FormOfGeneric) Text() string

type Frac

type Frac struct {
	Num1 string `json:"num1,omitempty" firestore:"num1,omitempty"`
	Num2 string `json:"num2,omitempty" firestore:"num2,omitempty"`
	Num3 string `json:"num3,omitempty" firestore:"num3,omitempty"`
}

https://en.wiktionary.org/wiki/Template:frac

func (*Frac) Text

func (f *Frac) Text() string

type Gloss

type Gloss struct {
	Gloss string `json:"gloss,omitempty" firestore:"gloss,omitempty"`
}

https://en.wiktionary.org/wiki/Template:gloss

func (*Gloss) Text

func (g *Gloss) Text() string

type GlossaryEntry

type GlossaryEntry struct {
	Type         string
	Name         string
	Shortcuts    []string
	NoLeftSpace  bool
	NoRightSpace bool
	Multiple     bool
}

type Inherited

type Inherited struct {
	Lang         string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	FromLang     string `lang:"true" json:"fromLang,omitempty" firestore:"fromLang,omitempty"`
	FromWord     string `json:"fromWord,omitempty" firestore:"fromWord,omitempty"`
	Alt          string `names:"alt" json:"alt,omitempty" firestore:"alt,omitempty"`
	Gloss        string `names:"t,gloss" json:"gloss,omitempty" firestore:"gloss,omitempty"`
	PartOfSpeech string `names:"pos" json:"partOfSpeech,omitempty" firestore:"partOfSpeech,omitempty"`
	Literal      string `names:"lit" json:"literal,omitempty" firestore:"literal,omitempty"`
}

https://en.wiktionary.org/wiki/Template:inherited

type Label

type Label struct {
	Lang string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`

	Label1  string `json:"label1,omitempty" firestore:"label1,omitempty"`
	Label2  string `json:"label2,omitempty" firestore:"label2,omitempty"`
	Label3  string `json:"label3,omitempty" firestore:"label3,omitempty"`
	Label4  string `json:"label4,omitempty" firestore:"label4,omitempty"`
	Label5  string `json:"label5,omitempty" firestore:"label5,omitempty"`
	Label6  string `json:"label6,omitempty" firestore:"label6,omitempty"`
	Label7  string `json:"label7,omitempty" firestore:"label7,omitempty"`
	Label8  string `json:"label8,omitempty" firestore:"label8,omitempty"`
	Label9  string `json:"label9,omitempty" firestore:"label9,omitempty"`
	Label10 string `json:"label10,omitempty" firestore:"label10,omitempty"`
}

https://en.wiktionary.org/wiki/Template:label

func (*Label) Text

func (l *Label) Text() string

type LabelEntry

type LabelEntry struct {
	Markup       string
	Text         string
	NoLeftComma  bool
	NoRightComma bool
	NoLeftSpace  bool
	NoText       bool
	Alias        string
}
type Link struct {
	Lang         string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	Word         string `json:"word,omitempty" firestore:"word,omitempty"`
	Alt          string `json:"alt,omitempty" firestore:"alt,omitempty"`
	Gloss        string `names:"t" json:"gloss,omitempty" firestore:"gloss,omitempty"`
	PartOfSpeech string `names:"pos" json:"partOfSpeech,omitempty" firestore:"partOfSpeech,omitempty"`
	Literal      string `names:"lit" json:"literal,omitempty" firestore:"literal,omitempty"`
}

https://en.wiktionary.org/wiki/Template:link

func (*Link) Text

func (l *Link) Text() string

type Mention

type Mention struct {
	Lang         string `lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	Word         string `json:"word,omitempty" firestore:"word,omitempty"`
	Alt          string `json:"alt,omitempty" firestore:"alt,omitempty"`
	Gloss        string `names:"t" json:"gloss,omitempty" firestore:"gloss,omitempty"`
	PartOfSpeech string `names:"pos" json:"partOfSpeech,omitempty" firestore:"partOfSpeech,omitempty"`
	Literal      string `names:"lit" json:"literal,omitempty" firestore:"literal,omitempty"`
}

https://en.wiktionary.org/wiki/Template:mention

func (*Mention) Text

func (m *Mention) Text() string

type NonGloss

type NonGloss struct {
	Definition string `json:"definition,omitempty" firestore:"definition,omitempty"`
}

https://en.wiktionary.org/wiki/Template:non-gloss

func (*NonGloss) Text

func (ng *NonGloss) Text() string

type Parameter

type Parameter struct {
	Name  string
	Value string
}

type Prefix

type Prefix struct {
	Prefix string `json:"prefix,omitempty" firestore:"prefix,omitempty"`
	Root   string `json:"root,omitempty" firestore:"root,omitempty"`
	Lang   string `names:"lang" lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
}

https://en.wiktionary.org/wiki/Template:prefix

type Qualifier

type Qualifier struct {
	Definition string `json:"text,omitempty" firestore:"text,omitempty"`
}

https://en.wiktionary.org/wiki/Template:qualifier

func (*Qualifier) Text

func (q *Qualifier) Text() string

type SpanishCompound

type SpanishCompound struct {
	VerbStem         string `json:"verbStem,omitempty" firestore:"verbStem,omitempty"`
	InfinitiveEnding string `json:"infinitiveEnding,omitempty" firestore:"infinitiveEnding,omitempty"`
	VerbForm         string `json:"verbForm,omitempty" firestore:"verbForm,omitempty"`
	FirstPronoun     string `json:"firstPronoun,omitempty" firestore:"firstPronoun,omitempty"`
	SecondPronoun    string `json:"secondPronoun,omitempty" firestore:"secondPronoun,omitempty"`
	Mood             string `names:"mood" json:"mood,omitempty" firestore:"mood,omitempty"`
	Person           string `names:"person" json:"person,omitempty" firestore:"person,omitempty"`
	Tense            string `names:"tense" json:"tense,omitempty" firestore:"tense,omitempty"`
	NoDot            string `names:"nodot" json:"nodot,omitempty" firestore:"nodot,omitempty"`
}

https://en.wiktionary.org/wiki/Template:es-compound_of

func (*SpanishCompound) Text

func (esc *SpanishCompound) Text() string

func (*SpanishCompound) Word

func (esc *SpanishCompound) Word() string

type SpanishVerb

type SpanishVerb struct {
	Word       string `names:"verb,inf,infinitive" json:"word,omitempty" firestore:"word,omitempty"`
	Ending     string `names:"ending,end" json:"ending" firestore:"ending"`
	Mood       string `names:"mood" json:"mood" firestore:"mood"`
	Tense      string `names:"tense" json:"tense" firestore:"tense"`
	Number     string `names:"number,num" json:"number" firestore:"number"`
	Person     string `names:"person,pers" json:"person" firestore:"person"`
	Formal     string `names:"formal" json:"formal" firestore:"formal"`
	Sense      string `names:"sense" json:"sense" firestore:"sense"`
	Sera       string `names:"sera" json:"sera" firestore:"sera"`
	Gender     string `names:"gender,gen" json:"gender,omitempty" firestore:"gender,omitempty"`
	Participle string `names:"participle,par,part" json:"participle,omitempty" firestore:"participle,omitempty"`
	Voseo      string `names:"voseo" json:"voseo,omitempty" firestore:"voseo,omitempty"`
	Region     string `names:"region" json:"region,omitempty" firestore:"region,omitempty"`
	NoDot      string `names:"nodot" json:"nodot,omitempty" firestore:"nodot,omitempty"`
}

https://en.wiktionary.org/wiki/Template:es-verb_form_of

func (*SpanishVerb) Normalize

func (esv *SpanishVerb) Normalize()

func (*SpanishVerb) Text

func (esv *SpanishVerb) Text() string

type Suffix

type Suffix struct {
	Lang   string `names:"lang" lang:"true" json:"lang,omitempty" firestore:"lang,omitempty"`
	Root   string `json:"root,omitempty" firestore:"root,omitempty"`
	Suffix string `json:"suffix,omitempty" firestore:"suffix,omitempty"`
}

https://en.wiktionary.org/wiki/Template:suffix

type Template

type Template struct {
	Action          string
	Parameters      []string
	NamedParameters []Parameter
}

func (*Template) ToBorrow

func (tpl *Template) ToBorrow() Borrow

func (*Template) ToCognate

func (tpl *Template) ToCognate() Cognate

func (*Template) ToDerived

func (tpl *Template) ToDerived() Derived

func (*Template) ToDescTree

func (tpl *Template) ToDescTree() DescTree

func (*Template) ToDescendant

func (tpl *Template) ToDescendant() Descendant

func (*Template) ToEtyl

func (tpl *Template) ToEtyl() Etyl

func (*Template) ToEtymTree

func (tpl *Template) ToEtymTree() EtymTree

func (*Template) ToFormOf

func (tpl *Template) ToFormOf(form string, tags ...string) FormOf

func (*Template) ToFormOfGeneric

func (tpl *Template) ToFormOfGeneric() FormOfGeneric

func (*Template) ToFrac

func (tpl *Template) ToFrac() Frac

func (*Template) ToGloss

func (tpl *Template) ToGloss() Gloss

func (*Template) ToInherited

func (tpl *Template) ToInherited() Inherited

func (*Template) ToLabel

func (tpl *Template) ToLabel() Label
func (tpl *Template) ToLink() Link

func (*Template) ToMention

func (tpl *Template) ToMention() Mention

func (*Template) ToNonGloss

func (tpl *Template) ToNonGloss() NonGloss

func (*Template) ToPrefix

func (tpl *Template) ToPrefix() Prefix

func (*Template) ToQualifier

func (tpl *Template) ToQualifier() Qualifier

func (*Template) ToSpanishCompound

func (tpl *Template) ToSpanishCompound() SpanishCompound

func (*Template) ToSuffix

func (tpl *Template) ToSuffix() Suffix

Jump to

Keyboard shortcuts

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