Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSyllableStructures = structureList{
"CVC",
"CVV?C",
"CVVC?", "CVC?", "CV", "VC", "CVF", "C?VC", "CVF?",
"CL?VC", "CL?VF", "S?CVC", "S?CVF", "S?CVC?",
"C?VF", "C?VC?", "C?VF?", "C?L?VC", "VC",
"CVL?C?", "C?VL?C", "C?VLC?",
}
Functions ¶
Types ¶
type Language ¶
type Language struct { Seed int64 Rnd *rand.Rand ApplyOrtho bool ApplyMorph bool Phonemes map[string]string Morphemes map[string][]string SyllableRestrictions []string ConsOrtho orthoMapping VowelOrtho orthoMapping Words generatedWords }
func BasicLanguage ¶
func OrthoLanguage ¶
func RandomLanguage ¶
func (*Language) MakeName ¶
func (lang *Language) MakeName(params *NameParams) (name string)
type NameParams ¶
type NameParams struct { MinLength int MaxLength int WordParams *WordParams Joiners string Group string }
func (*NameParams) Clone ¶
func (p *NameParams) Clone() *NameParams
Clone returns a deep copy of the NameParams.
type WordParams ¶
func (*WordParams) Clone ¶
func (p *WordParams) Clone() *WordParams
Clone returns a deep copy of the WordParams.
Click to show internal directories.
Click to hide internal directories.