Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2026 Changes in this version + const ErrExhausted + const ErrInvalidSpec + type Error string + func (e Error) Error() string + type Language struct + func New(spec Spec, rng *rand.Rand) (*Language, error) + func NewSync(spec Spec, rng *rand.Rand) (*Language, error) + func (l *Language) Morpheme(key string) (string, error) + func (l *Language) Name(key string) (string, error) + func (l *Language) Syllable() (string, error) + func (l *Language) Word(key string) (string, error) + type Restriction uint8 + const NoDoubles + const NoLiquidClusters + const NoSibilantClusters + type Spec struct + ConsonantSpelling map[string]string + Exponent float64 + Joiner string + MaxLength int + MaxSyllables int + MinLength int + MinSyllables int + Morphemes bool + Phonemes map[string]string + Restrictions []Restriction + Spell bool + Structure string + VowelSpelling map[string]string + func BasicSpec() Spec + func RandomSpec(rng *rand.Rand) Spec + func (s Spec) Validate() error