Documentation
¶
Overview ¶
Package conlang provides methods and tools for procedurally generating constructed languages. It makes use of the language package for underlying structure.
Index ¶
- func AddNounToWordList(lang language.Language, langCategory Category, word string) (map[string]string, error)
- func GenerateNameList(numberOfNames int, langCategory Category, nameType string) ([]string, error)
- func GenerateWordList(langCategory Category) (map[string]string, error)
- func IsInWordList(word string, wordList map[string]string) bool
- func RandomGenderedName(langCategory Category, gender string) (string, error)
- func RandomName(langCategory Category) (string, error)
- type Category
- type Mutation
- type WordType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNounToWordList ¶
func AddNounToWordList(lang language.Language, langCategory Category, word string) (map[string]string, error)
AddNounToWordList adds a new noun to an existing word list for a language
func GenerateNameList ¶
GenerateNameList generates a list of names appropriate for the language
func GenerateWordList ¶
GenerateWordList creates a word list for a language
func IsInWordList ¶
IsInWordList checks to see if a given word is in a word list
func RandomGenderedName ¶
RandomGenderedName generates a random gendered first name
func RandomName ¶
RandomName generates a random name using the language
Types ¶
Click to show internal directories.
Click to hide internal directories.