Documentation ¶
Index ¶
- Constants
- Variables
- func Capitalize(s string) string
- func GetAdjective(noun string) string
- func GetArticle(s string) string
- func GetDegreeAdverbFromAdjective(adjective string) string
- func GetNounPlural(noun string) string
- func GetPastTense(verb string) string
- func GetPresentParticiple(verb string) string
- func GetPresentSingular(verb string) string
- func GetPronounIsPlural(pronoun string) bool
- func IsVowel(c rune) bool
- func NewFantasyName() (fmt.Stringer, error)
- func NumberToWords(num int) string
- func P(probability float64) bool
- func RuneToLowerCase(c rune) rune
- func TrimVowels(str string, minLength int) string
- type Language
- func (l *Language) Fork(newSeed int64) *Language
- func (l *Language) GetFirstName() string
- func (l *Language) GetFirstNamePoolSize() int
- func (l *Language) GetLastName() string
- func (l *Language) GetLastNamePoolSize() int
- func (l *Language) GetWord(group string) string
- func (l *Language) MakeCityName() string
- func (l *Language) MakeFirstName() string
- func (l *Language) MakeLastName() string
- func (l *Language) MakeName() string
Constants ¶
const ( GenBaseNumber = "number" GenBaseBeing = "being" GenBaseAnimal = "animal" GenBaseAdjective = "adjective" GenBaseGenitive = "genitive" GenBaseTheGenitive = "theGenitive" GenBaseColor = "color" )
Variables ¶
var Antonyms = map[string]map[string][]string{
GenBaseBeing: {
"Ancestor": {
"Descendent",
},
"Ancient": {
"Modern",
"New",
"Recent",
},
"Angel": {
"Devil",
"Daemon",
"Demon",
"Fiend",
},
"Betrayer": {
"Loyal",
"Faithful",
"Trustworthy",
"Ally",
},
"Bride": {
"Groom",
},
"Brother": {
"Sister",
},
"Chief": {
"Servant",
"Footman",
},
"Child": {
"Adult",
"Parent",
"Mother",
"Father",
},
"Council": {
"Leader",
"Ruler",
"King",
"Queen",
},
"Creator": {
"Destroyer",
"Annihilator",
"Eliminator",
"Vanquisher",
},
"Deity": {
"Mortal",
},
"Elder": {
"Young",
"Child",
},
"Father": {
"Mother",
"Child",
"Son",
"Daughter",
},
"Forebearer": {
"Descendent",
},
"Forefather": {
"Descendent",
},
"Foremother": {
"Descendent",
},
"Forgiven": {
"Forgotten",
"Forsaken",
},
"Forgotten": {
"Forgiven",
"Forsaken",
},
"Giver": {
"Taker",
"Stealer",
"Thief",
},
"God": {
"Devil",
"Daemon",
"Demon",
"Fiend",
"Fallen",
},
"Goddess": {
"Devil",
"Daemon",
"Demon",
"Fiend",
"Fallen",
},
"Golem": {
"Creator",
"Maker",
},
"Groom": {
"Bride",
},
"Guardian": {
"Enemy",
"Opponent",
"Rival",
"Adversary",
},
"Guide": {
"Lost",
"Stray",
"Wayward",
},
"Keeper": {
"Lost",
"Stray",
"Wayward",
},
"Knight": {
"Thief",
"Rogue",
},
"King": {
"Queen",
},
"Lady": {
"Lord",
},
"Lord": {
"Lady",
},
"Lover": {
"Hater",
"Enemy",
"Rival",
},
"Maker": {
"Destroyer",
"Annihilator",
"Eliminator",
"Vanquisher",
"Unmaker",
},
"Master": {
"Slave",
"Servant",
},
"Mistress": {
"Master",
},
"Mother": {
"Father",
},
"Numen": {
"Devil",
"Daemon",
"Demon",
"Fiend",
"Fallen",
},
"Orphan": {
"Parent",
"Mother",
"Father",
"Siblings",
"Daugther",
"Son",
},
"Overlord": {
"Underlord",
},
"Reaper": {
"Creator",
"Sower",
"Maker",
},
"Ruler": {
"Subject",
"Slave",
"Servant",
"Pawn",
"Peasant",
},
"Seducer": {
"Virgin",
"Chaste",
"Pure",
"Unspoiled",
"Saint",
},
"Seductress": {
"Virgin",
"Chaste",
"Pure",
"Unspoiled",
"Saint",
},
"Servant": {
"Master",
"Lord",
"King",
"Queen",
"Ruler",
"Mistress",
},
"Sister": {
"Brother",
},
"Spirit": {
"Body",
},
"Thief": {
"Knight",
"Guardian",
"Protector",
"Defender",
},
"Virgin": {
"Seducer",
"Seductress",
},
"Warrior": {
"Priest",
"Monk",
"Saint",
"Hermit",
},
"Watcher": {
"Observed",
"Seen",
},
"Widow": {
"Widower",
},
"Widower": {
"Widow",
},
"Wife": {
"Husband",
},
"Witch": {
"Wizard",
"Warlock",
},
"Wizard": {
"Witch",
"Warlock",
},
},
GenBaseAnimal: {
"Antelope": {},
"Ape": {},
"Badger": {},
"Basilisk": {},
"Bear": {},
"Beaver": {},
"Bison": {},
"Boar": {},
"Buffalo": {},
"Camel": {},
"Cat": {},
"Centaur": {},
"Chimera": {},
"Cobra": {},
"Crane": {},
"Crocodile": {},
"Crow": {},
"Cyclope": {},
"Deer": {},
"Dog": {},
"Dragon": {},
"Eagle": {},
"Elk": {},
"Falcon": {},
"Fox": {},
"Goat": {},
"Goose": {},
"Hare": {},
"Hawk": {},
"Heron": {},
"Horse": {},
"Hound": {},
"Hyena": {},
"Ibis": {},
"Jackal": {},
"Jaguar": {},
"Kraken": {},
"Lark": {},
"Leopard": {},
"Lion": {},
"Mantis": {},
"Marten": {},
"Moose": {},
"Mule": {},
"Narwhal": {},
"Owl": {},
"Ox": {},
"Panther": {},
"Pegasus": {},
"Phoenix": {},
"Rat": {},
"Raven": {},
"Rook": {},
"Scorpion": {},
"Serpent": {},
"Shark": {},
"Sheep": {},
"Snake": {},
"Sphinx": {},
"Spider": {},
"Swan": {},
"Tiger": {},
"Turtle": {},
"Unicorn": {},
"Viper": {},
"Vulture": {},
"Walrus": {},
"Wolf": {},
"Wolverine": {},
"Worm": {},
"Wyvern": {},
},
GenBaseAdjective: {
"Aggressive": {
"Passive",
"Peaceful",
"Docile",
"Submissive",
"Timid",
},
"Almighty": {
"Powerless",
"Helpless",
"Vulnerable",
"Feeble",
"Weak",
},
"Ancient": {
"Modern",
"New",
},
"Angry": {
"Happy",
"Joyful",
"Cheerful",
"Content",
"Peaceful",
"Serene",
"Relaxed",
"Calmed",
"Tranquil",
},
"Anxious": {
"Confident",
"Secure",
"Relaxed",
"Serene",
},
"Awful": {
"Beautiful",
"Charming",
"Delightful",
},
"Beautiful": {
"Awful",
"Ugly",
"Hideous",
"Disgusting",
},
"Benevolent": {
"Malevolent",
},
"Big": {
"Small",
"Tiny",
"Little",
},
"Blind": {
"Sighted",
"Seeing",
},
"Blond": {
"Dark",
"Black",
"Brown",
"Red",
"Golden",
"Silver",
},
"Bloody": {
"Clean",
"Pure",
"Unsoiled",
},
"Brave": {
"Cowardly",
"Fearful",
"Timid",
"Shy",
},
"Broken": {
"Whole",
"Unbroken",
"Intact",
"Complete",
},
"Brutal": {
"Merciful",
"Kind",
"Compassionate",
},
"Burning": {
"Cold",
"Frozen",
"Freezing",
"Soothing",
},
"Calm": {
"Agitated",
"Anxious",
"Stressed",
"Unsettled",
},
"Careful": {
"Careless",
"Thoughtless",
"Rash",
"Reckless",
},
"Charming": {
"Repulsive",
"Abrasive",
},
"Cheerful": {
"Sad",
"Depressed",
"Melancholy",
"Downcast",
"Despondent",
"Dispirited",
"Disheartened",
"Disconsolate",
"Desolate",
"Hopeless",
"Despairing",
"Disappointed",
"Disgruntled",
},
"Chosen": {
"Rejected",
"Unwanted",
},
"Clean": {
"Dirty",
"Filthy",
"Unclean",
"Foul",
},
"Crazy": {
"Sane",
"Rational",
"Logical",
"Practical",
},
"Cruel": {
"Kind",
"Compassionate",
"Merciful",
"Charitable",
"Generous",
"Caring",
},
"Dead": {
"Living",
"Breathing",
},
"Deadly": {
"Healing",
"Restorative",
"Curing",
},
"Deaf": {
"Hearing",
"Listening",
},
"Deathless": {
"Mortal",
},
"Deep": {
"Shallow",
},
"Defiant": {
"Submissive",
"Docile",
"Timid",
},
"Delicate": {
"Rough",
"Rugged",
"Roughened",
"Robust",
},
"Delightful": {
"Repulsive",
"Abrasive",
},
"Desperate": {
"Hopeful",
"Optimistic",
"Cheerful",
"Happy",
},
"Devastating": {
"Restorative",
},
"Distant": {
"Near",
"Close",
"Nearby",
},
"Disturbing": {
"Calming",
"Reassuring",
},
"Divine": {
"Mortal",
},
"Dying": {
"Living",
"Breathing",
"Undying",
},
"Enchanting": {
"Repulsive",
"Abrasive",
},
"Ephemeral": {
"Permanent",
"Enduring",
"Everlasting",
"Immortal",
"Eternal",
},
"Eternal": {
"Temporary",
"Transitory",
"Short-lived",
"Ephemeral",
},
"Evil": {
"Good",
"Righteous",
"Virtuous",
"Pure",
"Chaste",
"Upright",
},
"Explicit": {
"Implicit",
"Unspoken",
"Unexpressed",
"Unstated",
"Unwritten",
},
"Fair": {
"Unfair",
"Unjust",
},
"Far": {
"Near",
"Close",
},
"Fat": {
"Thin",
"Slender",
"Slim",
"Gaunt",
},
"Fatal": {
"Restorative",
},
"Favorable": {
"Unfavorable",
},
"Flying": {
"Grounded",
"Crawling",
"Creeping",
"Stumbling",
"Slithering",
"Burrowing",
},
"Friendly": {
"Hostile",
"Unfriendly",
"Unkind",
"Unpleasant",
},
"Frozen": {
"Molten",
"Burning",
"Hot",
"Scorching",
"Blazing",
"Fiery",
"Flaming",
"Smoldering",
"Smoking",
},
"Giant": {
"Tiny",
"Small",
"Little",
},
"Good": {
"Evil",
"Bad",
"Wrong",
"Corrupt",
"Depraved",
"Vile",
"Villainous",
"Sinful",
"Immoral",
"Unethical",
"Unrighteous",
"Unjust",
"Unlawful",
"Unfair",
},
"Grateful": {
"Ungrateful",
"Unappreciative",
"Unthankful",
},
"Great": {
"Small",
"Little",
"Minor",
"Lesser",
},
"Greedy": {
"Generous",
"Charitable",
"Altruistic",
"Selfless",
"Unselfish",
},
"Happy": {
"Sad",
"Unhappy",
"Depressed",
"Despondent",
"Downcast",
"Downhearted",
"Down",
"Dispirited",
"Disheartened",
"Disconsolate",
"Desolate",
"Despairing",
"Despairful",
"Despair",
"Disappointed",
},
"High": {
"Low",
"Short",
"Little",
"Sober",
},
"Holy": {
"Profane",
"Unholy",
"Unsacred",
"Unhallowed",
"Unsanctified",
"Unconsecrated",
"Unsaintly",
"Unsaintlike",
"Unsainted",
"Devilish",
"Diabolical",
"Diabolic",
"Sacrilegious",
},
"Honest": {
"Unhonest",
"Untrustworthy",
"Unreliable",
"Unfaithful",
"Untrue",
"Untrusty",
"Dishonest",
"Deceitful",
"Deceptive",
},
"Huge": {
"Tiny",
"Small",
"Little",
},
"Hungry": {
"Satiated",
"Sated",
"Full",
"Stuffed",
},
"Immutable": {
"Mutable",
"Changeable",
"Variable",
"Varying",
"Volatile",
"Unstable",
"Unpredictable",
"Unsteady",
},
"Infallible": {
"Fallible",
"Faulty",
"Flawed",
},
"Inherent": {
"Acquired",
"Learned",
},
"Last": {
"First",
"Initial",
},
"Latter": {
"Former",
},
"Lonely": {
"Crowded",
},
"Lost": {
"Found",
},
"Loud": {
"Quiet",
"Silent",
"Still",
},
"Loving": {
"Unloving",
"Unloved",
"Unlovable",
},
"Lucky": {
"Unlucky",
"Unfortunate",
},
"Lustful": {
"Chaste",
"Pious",
"Virtuous",
},
"Mad": {
"Sane",
"Rational",
"Logical",
"Reasonable",
"Practical",
"Pragmatic",
},
"Magical": {
"Real",
"Natural",
"Physical",
"Material",
},
"Main": {
"Minor",
},
"Major": {
"Minor",
},
"Marine": {
"Terrestrial",
"Landbound",
},
"Naval": {
"Landbound",
},
"New": {
"Old",
"Antique",
"Antiquated",
"Antediluvian",
"Antiquarian",
"Antique",
},
"Old": {
"New",
"Modern",
"Contemporary",
},
"Patient": {
"Impatient",
"Restless",
"Unruly",
},
"Peaceful": {
"Warlike",
"Martial",
},
"Pregnant": {
"Barren",
},
"Prime": {
"Secondary",
},
"Proud": {
"Humble",
"Modest",
"Unassuming",
"Unpretentious",
},
"Pure": {
"Corrupt",
"Debased",
"Vile",
"Villainous",
},
"Sacred": {
"Profane",
"Unholy",
"Unsacred",
"Unhallowed",
"Unsanctified",
"Unconsecrated",
"Unsaintly",
},
"Sad": {
"Happy",
"Cheerful",
"Joyful",
"Jolly",
"Merry",
"Elated",
"Ecstatic",
"Exultant",
"Exuberant",
"Exhilarated",
},
"Scary": {
"Calming",
"Comforting",
},
"Secret": {
"Open",
"Public",
"Known",
"Unhidden",
"Unconcealed",
},
"Selected": {
"Rejected",
"Unchosen",
},
"Severe": {
"Mild",
"Moderate",
"Lenient",
"Lenitive",
},
"Silent": {
"Loud",
"Vocal",
"Vociferous",
},
"Sleeping": {
"Waking",
"Awake",
"Awakened",
},
"Slumbering": {
"Waking",
"Awake",
"Awakened",
},
"Spiteful": {
"Kind",
"Good",
"Benign",
},
"Strong": {
"Weak",
"Feeble",
"Frail",
"Delicate",
},
"Sunny": {
"Cloudy",
"Overcast",
"Stormy",
},
"Superior": {
"Inferior",
},
"Sustainable": {
"Unsustainable",
},
"Troubled": {
"Peaceful",
"Untroubled",
},
"Undying": {
"Dead",
"Living",
"Mortal",
},
"Unhappy": {
"Happy",
"Cheerful",
"Joyful",
"Jolly",
"Merry",
"Elated",
"Ecstatic",
"Exultant",
"Exuberant",
"Exhilarated",
},
"Unknown": {
"Known",
"Seen",
},
"Waking": {
"Sleeping",
"Slumbering",
},
"Wild": {
"Tame",
},
"Wise": {
"Foolish",
"Stupid",
"Idiotic",
"Moronic",
"Imbecilic",
},
"Worried": {
"Untroubled",
},
"Young": {
"Old",
},
},
GenBaseGenitive: {
"Cold": {
"Heat",
},
"Darkness": {
"Light",
},
"Dawn": {
"Dusk",
},
"Day": {
"Night",
},
"Death": {
"Life",
},
"Doom": {
"Fate",
},
"Dreams": {
"Reality",
},
"Dusk": {
"Dawn",
},
"Fate": {
"Doom",
"Chance",
},
"Fire": {
"Ice",
},
"Fog": {
"Clear",
},
"Frost": {
"Thaw",
},
"Gates": {
"Keys",
},
"Heaven": {
"Earth",
},
"Home": {
"Exile",
},
"Hope": {
"Despair",
},
"Ice": {
"Fire",
},
"Justice": {
"Crime",
},
"Kings": {
"Peasants",
"Queens",
},
"Life": {
"Death",
},
"Light": {
"Darkness",
},
"Lightning": {
"Thunder",
},
"Lords": {
"Ladies",
},
"Love": {
"Hate",
},
"Nature": {
"Nurture",
},
"Night": {
"Day",
},
"Pain": {
"Pleasure",
},
"Snow": {
"Rain",
},
"Springs": {
"Lakes",
"Rivers",
},
"Stars": {
"Suns",
"Moons",
},
"Summer": {
"Spring",
"Autumn",
"Winter",
},
"Sun": {
"Star",
"Moon",
},
"Sunset": {
"Sunrise",
},
"Thunder": {
"Lightning",
},
"Time": {
"Space",
},
"Victory": {
"Defeat",
},
"War": {
"Peace",
},
"Wealth": {
"Poverty",
},
"Winter": {
"Spring",
"Autumn",
"Summer",
},
"Wisdom": {
"Folly",
},
},
GenBaseTheGenitive: {
"Abyss": {
"Expanse",
},
"Blood": {
"Flesh",
"Earth",
"Stone",
},
"Dawn": {
"Dusk",
},
"Earth": {
"Sky",
},
"East": {
"West",
},
"Eclipse": {
"Equinox",
},
"Fall": {
"Spring",
},
"Harvest": {
"Planting",
},
"Moon": {
"Star",
"Sun",
},
"North": {
"South",
},
"Peak": {
"Valley",
},
"Rainbow": {
"Night",
},
"Sea": {
"Land",
"Air",
},
"Sky": {
"Earth",
},
"South": {
"North",
},
"Stars": {
"Suns",
"Moons",
},
"Storm": {
"Calm",
},
"Sun": {
"Star",
"Moon",
},
"Tree": {
"Forest",
},
"Underworld": {
"Overworld",
},
"West": {
"East",
},
"Wild": {
"Tame",
},
"Word": {
"Act",
},
"World": {
"Void",
},
},
GenBaseColor: {
"Amber": {},
"Black": {},
"Blue": {},
"Bright": {},
"Brown": {},
"Dark": {},
"Golden": {},
"Green": {},
"Grey": {},
"Light": {},
"Orange": {},
"Pink": {},
"Purple": {},
"Red": {},
"White": {},
"Yellow": {},
},
}
var GenBase = map[string][]string{ GenBaseNumber: {"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve"}, GenBaseBeing: { "Ancestor", "Ancient", "Angel", "Betrayer", "Bride", "Brother", "Chief", "Child", "Council", "Creator", "Deity", "Elder", "Father", "Forebearer", "Forefather", "Foremother", "Forgiven", "Forgotten", "Giver", "God", "Goddess", "Golem", "Groom", "Guardian", "Guide", "Keeper", "King", "Knight", "Lady", "Lord", "Lover", "Maker", "Master", "Mistress", "Mother", "Numen", "Orphan", "Overlord", "Reaper", "Ruler", "Seducer", "Seductress", "Servant", "Sister", "Spirit", "Thief", "Virgin", "Warrior", "Watcher", "Widow", "Widower", "Wife", "Witch", "Wizard", }, GenBaseAnimal: { "Antelope", "Ape", "Badger", "Basilisk", "Bear", "Beaver", "Bison", "Boar", "Buffalo", "Camel", "Cat", "Centaur", "Chimera", "Cobra", "Crane", "Crocodile", "Crow", "Cyclope", "Deer", "Dog", "Dragon", "Eagle", "Elk", "Falcon", "Fox", "Goat", "Goose", "Hare", "Hawk", "Heron", "Horse", "Hound", "Hyena", "Ibis", "Jackal", "Jaguar", "Kraken", "Lark", "Leopard", "Lion", "Mantis", "Marten", "Moose", "Mule", "Narwhal", "Owl", "Ox", "Panther", "Pegasus", "Phoenix", "Rat", "Raven", "Rook", "Scorpion", "Serpent", "Shark", "Sheep", "Snake", "Sphinx", "Spider", "Swan", "Tiger", "Turtle", "Unicorn", "Viper", "Vulture", "Walrus", "Wolf", "Wolverine", "Worm", "Wyvern", }, GenBaseAdjective: { "Aggressive", "Almighty", "Ancient", "Angry", "Anxious", "Awful", "Beautiful", "Benevolent", "Big", "Blind", "Blond", "Bloody", "Brave", "Broken", "Brutal", "Burning", "Calm", "Careful", "Charming", "Cheerful", "Chosen", "Clean", "Crazy", "Cruel", "Dead", "Deadly", "Deaf", "Deathless", "Deep", "Defiant", "Delicate", "Delightful", "Desperate", "Devastating", "Distant", "Disturbing", "Divine", "Dying", "Enchanting", "Ephemeral", "Eternal", "Evil", "Explicit", "Fair", "Far", "Fat", "Fatal", "Favorable", "Flying", "Friendly", "Frozen", "Giant", "Good", "Grateful", "Great", "Greedy", "Happy", "High", "Holy", "Honest", "Huge", "Hungry", "Immutable", "Infallible", "Inherent", "Last", "Latter", "Lonely", "Lost", "Loud", "Loving", "Lucky", "Lustful", "Mad", "Magical", "Main", "Major", "Marine", "Naval", "New", "Old", "Patient", "Peaceful", "Pregnant", "Prime", "Proud", "Pure", "Sacred", "Sad", "Scary", "Secret", "Selected", "Severe", "Silent", "Sleeping", "Slumbering", "Spiteful", "Strong", "Sunny", "Superior", "Sustainable", "Troubled", "Undying", "Unhappy", "Unknown", "Waking", "Wild", "Wise", "Worried", "Young", }, GenBaseGenitive: { "Cold", "Darkness", "Dawn", "Day", "Death", "Doom", "Dreams", "Dusk", "Fate", "Fire", "Fog", "Frost", "Gates", "Heaven", "Home", "Hope", "Ice", "Justice", "Kings", "Life", "Light", "Lightning", "Love", "Nature", "Night", "Pain", "Snow", "Springs", "Stars", "Summer", "Sun", "Sunset", "Thunder", "Time", "Victory", "War", "Wealth", "Winter", "Wisdom", }, GenBaseTheGenitive: { "Abyss", "Blood", "Dawn", "Earth", "East", "Eclipse", "Fall", "Harvest", "Moon", "North", "Peak", "Rainbow", "Sea", "Sky", "South", "Stars", "Storm", "Sun", "Tree", "Underworld", "West", "Wild", "Word", "World", }, GenBaseColor: { "Amber", "Black", "Blue", "Bright", "Brown", "Dark", "Golden", "Green", "Grey", "Light", "Orange", "Pink", "Purple", "Red", "White", "Yellow", }, }
GenBase contains a map of word lists used for name generation. TODO: Group individual entries by logical categories. So we can build up a pantheon of gods, each associated with different domains. For example: {North, South, East, West} -> {Direction} {Bride, Groom, Widow, Widower, Wife, Husband} -> {Marriage} {Giver, Taker, Destroyer, Creator, Maker, Breaker} -> {Action} {Sky, Earth, Water, Fire, Air, Spirit} -> {Elements} {Light, Dark, Bright, Shining, Shadow, Darkness} -> {Light}
Functions ¶
func Capitalize ¶
Capitalize returns the string with the first letter capitalized.
func GetDegreeAdverbFromAdjective ¶
GetDegreeAdverbFromAdjective returns the degree adverb for an adjective.
func GetNounPlural ¶
GetNounPlural returns the plural form of a noun. This takes in account "witch" and "fish" which are irregular.
func GetPastTense ¶
GetPastTense returns the past tense of a verb.
func GetPresentParticiple ¶
GetPresentParticiple returns the present participle of a verb.
func GetPresentSingular ¶
GetPresentSingular returns the singular present tense of a verb. 'walk' -> 'walks' 'cry' -> 'cries' 'amaze' -> 'amazes' 'raz' -> 'razzes' 'fuzz' -> 'fuzzes'
func GetPronounIsPlural ¶
GetPronounIsPlural returns true if the pronoun is plural.
func NewFantasyName ¶
func NumberToWords ¶
NumberToWords returns a string representation of the given number in English.
func RuneToLowerCase ¶
RuneToLowerCase returns the lowercase rune.
func TrimVowels ¶
TrimVowels remove vowels from the end of the string.
Types ¶
type Language ¶
type Language struct {
// contains filtered or unexported fields
}
func GenLanguage ¶
func (*Language) GetFirstName ¶
GetFirstName returns a random, pre-existing first name from the language.
func (*Language) GetFirstNamePoolSize ¶
GetFirstNamePoolSize returns the number of first names in the language.
func (*Language) GetLastName ¶
GetLastName returns a random, pre-existing last name from the language.
func (*Language) GetLastNamePoolSize ¶
GetLastNamePoolSize returns the number of last names in the language.
func (*Language) MakeCityName ¶
MakeCityName returns a random, probably new, city name from the language.
func (*Language) MakeFirstName ¶
MakeFirstName returns a random, probably new, first name from the language.
func (*Language) MakeLastName ¶
MakeLastName returns a random, probably new, last name from the language.