models

package
v0.0.0-...-7cb78d9 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adjective

type Adjective struct {
	Id int

	Absolute   bool
	AppendMore bool
	AppendEst  bool

	Word string
}

type ConjugationTime

type ConjugationTime int
const (
	CM_Unknown ConjugationTime = iota
	CM_Present
	CM_Past
	CM_Future
)

func (ConjugationTime) String

func (cm ConjugationTime) String() string

type ConjugationType

type ConjugationType int
const (
	CT_Unknown ConjugationType = iota
	CT_I
	CT_You
	CT_It
	CT_We
	CT_They
)

func (ConjugationType) String

func (ct ConjugationType) String() string

type Noun

type Noun struct {
	Id int

	Multiple bool

	Begin bool
	End   bool
	Alone bool

	Regular bool

	Word string
}

func (Noun) Plural

func (n Noun) Plural() string

type Pronoun

type Pronoun struct {
	Id     int
	Plural bool
	Word   string
}

type Verb

type Verb struct {
	Id int

	Regular bool

	// Indefinite form
	Word string
}

func (Verb) Conjugate

func (v Verb) Conjugate(conjugation ConjugationType, time ConjugationTime, inverted bool) string

TODO: implement inverted

Jump to

Keyboard shortcuts

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