namegen

package
v0.0.0-...-a0f82c1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Words []*Word

Functions

This section is empty.

Types

type Adjective

type Adjective struct {
	Adjective string
	Distance  int

	TheCompound   bool
	FrontCompound bool
	RearCompound  bool
}

type Noun

type Noun struct {
	Singular string
	Plural   string

	TheSingular           bool
	ThePlural             bool
	TheCompoundSingular   bool
	TheCompoundPlural     bool
	OfSingular            bool
	OfPlural              bool
	FrontCompoundSingular bool
	FrontCompoundPlural   bool
	RearCompoundSingular  bool
	RearCompoundPlural    bool
}

type Prefix

type Prefix struct {
	Prefix string

	FrontCompound bool
	TheCompound   bool
}

type Verb

type Verb struct {
	PresentFirst string
	PresentThird string
	Preterite    string
	PastPart     string
	PresentPart  string

	Standard bool
}

type Word

type Word struct {
	ID        string
	Noun      *Noun
	Prefix    *Prefix
	Verb      *Verb
	Adjective *Adjective

	Translation struct {
		Dwarf  string
		Human  string
		Goblin string
		Elf    string
	}
}

func GenerateNameParts

func GenerateNameParts(r *rand.Rand) (first, front, rear *Word)

Jump to

Keyboard shortcuts

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