Created
October 22, 2023 18:04
-
-
Save itsmikita/b4380f8e563140098f8f6d5e6c744d19 to your computer and use it in GitHub Desktop.
Generate Random People Names and Phrases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the list is generated by a custom ml agent | |
export const adjectives = [ | |
"benevolent", | |
"charming", | |
"diligent", | |
"elegant", | |
"fantastic", | |
"graceful", | |
"humble", | |
"inquisitive", | |
"joyful", | |
"kind", | |
"loyal", | |
"magnificent", | |
"noble", | |
"optimistic", | |
"passionate", | |
"radiant", | |
"sincere", | |
"thoughtful", | |
"upbeat", | |
"valiant", | |
"witty", | |
"zealous", | |
"adventurous", | |
"brilliant", | |
"courageous", | |
"determined", | |
"exuberant", | |
"fearless", | |
"genuine", | |
"honest", | |
"inventive", | |
"jovial", | |
"knowledgeable", | |
"lively", | |
"modest", | |
"nurturing", | |
"open-minded", | |
"patient", | |
"reliable", | |
"selfless", | |
"trustworthy", | |
"versatile", | |
"wise", | |
"youthful", | |
"affectionate", | |
"bold", | |
"creative", | |
"dynamic", | |
"energetic", | |
"fierce", | |
"gracious", | |
"harmonious", | |
"inspiring", | |
"joyous", | |
"kind-hearted", | |
"loving", | |
"mellow", | |
"optimistic", | |
"peaceful", | |
"resilient", | |
"strong", | |
"tenacious", | |
"vibrant", | |
"warm", | |
"zealous", | |
"accomplished", | |
"brave", | |
"caring", | |
"determined", | |
"expressive", | |
"flexible", | |
"generous", | |
"humble", | |
"imaginative", | |
"just", | |
"knowledgeable", | |
"light-hearted", | |
"mature", | |
"noble", | |
"optimistic", | |
"practical", | |
"resilient", | |
"sensible", | |
"talented", | |
"understanding", | |
"vivacious", | |
"witty", | |
"wise", | |
"affable", | |
"bubbly", | |
"charismatic", | |
"dynamic", | |
"excellent", | |
"faithful", | |
"gentle", | |
"hopeful", | |
"insightful", | |
"joyful", | |
"kind-hearted", | |
"lovable", | |
"modest", | |
"respectful", | |
"sincere", | |
"trustworthy", | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the list is generated by a custom ml agent | |
export const femaleNames = [ | |
"Emily", | |
"Emma", | |
"Olivia", | |
"Sophia", | |
"Ava", | |
"Isabella", | |
"Mia", | |
"Charlotte", | |
"Amelia", | |
"Harper", | |
"Evelyn", | |
"Abigail", | |
"Emily", | |
"Elizabeth", | |
"Sofia", | |
"Ella", | |
"Grace", | |
"Chloe", | |
"Victoria", | |
"Zoey", | |
"Nora", | |
"Lily", | |
"Avery", | |
"Hannah", | |
"Layla", | |
"Scarlett", | |
"Aria", | |
"Lillian", | |
"Zoe", | |
"Ellie", | |
"Mila", | |
"Grace", | |
"Victoria", | |
"Avery", | |
"Harper", | |
"Scarlett", | |
"Ariana", | |
"Ella", | |
"Riley", | |
"Lily", | |
"Aubrey", | |
"Evelyn", | |
"Olivia", | |
"Sophia", | |
"Emma", | |
"Mia", | |
"Charlotte", | |
"Lucy", | |
"Anna", | |
"Penelope", | |
"Leah", | |
"Samantha", | |
"Allison", | |
"Natalie", | |
"Emilia", | |
"Brooklyn", | |
"Aaliyah", | |
"Hailey", | |
"Stella", | |
"Paisley", | |
"Hazel", | |
"Aurora", | |
"Claire", | |
"Audrey", | |
"Alice", | |
"Kinsley", | |
"Maya", | |
"Gabriella", | |
"Skylar", | |
"Madelyn", | |
"Bella", | |
"Arianna", | |
"Kaylee", | |
"Addison", | |
"Eleanor", | |
"Nora", | |
"Isla", | |
"Elena", | |
"Hannah", | |
"Lillian", | |
"Savannah", | |
"Zoe", | |
"Nevaeh", | |
"Adeline", | |
"Charlie", | |
"Delilah", | |
"Ruby", | |
"Lucy", | |
"Mary", | |
"Jade", | |
"Millie", | |
"Valentina", | |
"Molly", | |
"Violet", | |
"Emery", | |
"Autumn", | |
"Sadie", | |
"Brielle", | |
"Natalia", | |
"Daisy", | |
"Genesis", | |
"Penelope", | |
"Ivy", | |
"Madeline", | |
"Josephine", | |
"Alyssa", | |
"Emilia", | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { femaleNames } from "femaleNames"; | |
import { maleNames } from "maleNames"; | |
const allNames = { ...femaleNames, ...maleNames }; | |
export const generateBinaryPersonName = ( count = 2, separator = " " ) => { | |
const name = Math.floor( Math.random() * allNames.length ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { femaleNames } from "femaleNames"; | |
/** | |
* Generate Feale Person Name | |
* | |
* @param count Number | |
* @param separator String | |
* @returns string | |
*/ | |
export const generateFemalePersonName = ( count = 2, separator = " " ) => { | |
for( let x = 0; x < count; x++ ) { | |
const name = Math.floor( Math.random() * maleNames.length ); | |
for( let x = 0; x < count; x++ ) { | |
name.push( maleNames ); | |
} | |
return name.implode(); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { maleNames } from "maleNames"; | |
/** | |
* Generate Male Person Name | |
* | |
* @param count Number | |
* @param separator String | |
* @returns string | |
*/ | |
export const generateMalePersonName = ( count = 2, separator = " " ) => { | |
const name = Math.floor( Math.random() * maleNames.length ); | |
for( let x = 0; x < count; x++ ) { | |
name.push( maleNames ); | |
} | |
return name.implode(); | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { abjectives } from "adjectives"; | |
import { nouns } from "nouns"; | |
/** | |
* Generate Random Phrase | |
* | |
* @param separator any | |
* @returns string | |
*/ | |
function generateRandomPhrase( separator = " " ) { | |
const adjective = adjectives[ Math.floor( Math.random() * adjectives.length ) ]; | |
const noun = nouns[ Math.floor( Math.random() * nouns.length ) ]; | |
return `${ adjective }${ separator }${ noun }`; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the list is generated by a custom ml agent | |
export const maleNames = [ | |
"John", | |
"Michael", | |
"David", | |
"James", | |
"Robert", | |
"William", | |
"Joseph", | |
"Daniel", | |
"Andrew", | |
"Christopher", | |
"Matthew", | |
"Anthony", | |
"Thomas", | |
"Joshua", | |
"Charles", | |
"Steven", | |
"Kevin", | |
"Edward", | |
"Brian", | |
"Mark", | |
"George", | |
"Donald", | |
"Jason", | |
"Jeffrey", | |
"Scott", | |
"Kenneth", | |
"Stephen", | |
"Timothy", | |
"Paul", | |
"Frank", | |
"Gregory", | |
"Eric", | |
"Patrick", | |
"Peter", | |
"Samuel", | |
"Benjamin", | |
"Adam", | |
"Jonathan", | |
"Richard", | |
"Robert", | |
"Nathan", | |
"Ryan", | |
"Gary", | |
"Jacob", | |
"Dennis", | |
"Jerry", | |
"Terry", | |
"Harry", | |
"Raymond", | |
"Edward", | |
"Larry", | |
"Ronald", | |
"Carl", | |
"Albert", | |
"Roger", | |
"Phillip", | |
"Shawn", | |
"Bryan", | |
"Travis", | |
"Lawrence", | |
"Tyler", | |
"Jesse", | |
"Jeremy", | |
"Randy", | |
"Leonard", | |
"Lloyd", | |
"Walter", | |
"Vincent", | |
"Russell", | |
"Dale", | |
"Gerald", | |
"Christian", | |
"Troy", | |
"Sam", | |
"Kyle", | |
"Chad", | |
"Cody", | |
"Mario", | |
"Joe", | |
"Bradley", | |
"Alex", | |
"Derek", | |
"Brent", | |
"Micheal", | |
"Arthur", | |
"Jamie", | |
"Darren", | |
"Ralph", | |
"Zachary", | |
"Barry", | |
"Tommy", | |
"Frederick", | |
"Martin", | |
"Joel", | |
"Herbert", | |
"Marvin", | |
"Duane", | |
"Eugene", | |
"Clarence", | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the list is generated by a custom ml agent | |
export const nouns = [ | |
"apple", | |
"book", | |
"car", | |
"dog", | |
"elephant", | |
"flower", | |
"guitar", | |
"house", | |
"island", | |
"jungle", | |
"key", | |
"lamp", | |
"moon", | |
"notebook", | |
"ocean", | |
"pencil", | |
"queen", | |
"river", | |
"star", | |
"tree", | |
"umbrella", | |
"violin", | |
"waterfall", | |
"xylophone", | |
"yacht", | |
"zebra", | |
"airplane", | |
"balloon", | |
"candle", | |
"dolphin", | |
"envelope", | |
"fire", | |
"globe", | |
"honey", | |
"ice cream", | |
"jewel", | |
"kite", | |
"lighthouse", | |
"mango", | |
"ninja", | |
"orchid", | |
"piano", | |
"quilt", | |
"rainbow", | |
"sunset", | |
"treasure", | |
"unicorn", | |
"volcano", | |
"wave", | |
"xylophone", | |
"yoga", | |
"zeppelin", | |
"accordion", | |
"basketball", | |
"cake", | |
"diamond", | |
"eagle", | |
"feather", | |
"garden", | |
"harp", | |
"island", | |
"jacket", | |
"kangaroo", | |
"lemon", | |
"mountain", | |
"note", | |
"oasis", | |
"pearl", | |
"quill", | |
"rock", | |
"sunflower", | |
"tulip", | |
"umbrella", | |
"vase", | |
"whale", | |
"xylophone", | |
"yarn", | |
"zebra", | |
"astronaut", | |
"banana", | |
"castle", | |
"dancer", | |
"elephant", | |
"fireworks", | |
"guitar", | |
"hamburger", | |
"iceberg", | |
"jellyfish", | |
"kiwi", | |
"lighthouse", | |
"mushroom", | |
"nebula", | |
"octopus", | |
"panda", | |
"quokka", | |
"robot", | |
"saxophone", | |
"tiger", | |
"umbrella", | |
"volcano", | |
"watermelon", | |
"xylophone", | |
"yarn", | |
"zeppelin" | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment