Skip to content

Instantly share code, notes, and snippets.

@seveibar
Created December 17, 2021 23:52
Show Gist options
  • Save seveibar/8df84123f69aefc49d51b93e6f1fbcec to your computer and use it in GitHub Desktop.
Save seveibar/8df84123f69aefc49d51b93e6f1fbcec to your computer and use it in GitHub Desktop.
const dictionary = {
word1List: [
"afraid",
"ancient",
"angry",
"average",
"bad",
"big",
"bitter",
"black",
"blue",
"brave",
"breezy",
"bright",
"brown",
"calm",
"chatty",
"chilly",
"clever",
"cold",
"cowardly",
"cuddly",
"curly",
"curvy",
"dangerous",
"dry",
"dull",
"empty",
"evil",
"fast",
"fat",
"fluffy",
"foolish",
"fresh",
"friendly",
"funny",
"fuzzy",
"gentle",
"giant",
"good",
"great",
"green",
"grumpy",
"happy",
"hard",
"heavy",
"helpless",
"honest",
"horrible",
"hot",
"hungry",
"itchy",
"jolly",
"kind",
"lazy",
"light",
"little",
"loud",
"lovely",
"lucky",
"massive",
"mean",
"mighty",
"modern",
"moody",
"nasty",
"neat",
"nervous",
"new",
"nice",
"odd",
"old",
"orange",
"ordinary",
"perfect",
"pink",
"plastic",
"polite",
"popular",
"pretty",
"proud",
"purple",
"quick",
"quiet",
"rare",
"red",
"rotten",
"rude",
"selfish",
"serious",
"shaggy",
"sharp",
"short",
"shy",
"silent",
"silly",
"slimy",
"slippery",
"smart",
"smooth",
"soft",
"sour",
"spicy",
"splendid",
"spotty",
"stale",
"strange",
"strong",
"stupid",
"sweet",
"swift",
"tall",
"tame",
"tasty",
"tender",
"terrible",
"thin",
"tidy",
"tiny",
"tough",
"tricky",
"ugly",
"unlucky",
"warm",
"weak",
"wet",
"white",
"wicked",
"wise",
"witty",
"wonderful",
"yellow",
"young",
],
word2List: [
"ape",
"baboon",
"badger",
"bat",
"bear",
"bird",
"bobcat",
"bulldog",
"bullfrog",
"cat",
"catfish",
"cheetah",
"chicken",
"chipmunk",
"cobra",
"cougar",
"cow",
"crab",
"deer",
"dingo",
"dodo",
"dog",
"dolphin",
"donkey",
"dragon",
"dragonfly",
"duck",
"eagle",
"earwig",
"eel",
"elephant",
"emu",
"falcon",
"fireant",
"fish",
"fly",
"fox",
"frog",
"gecko",
"goat",
"goose",
"grasshopper",
"horse",
"hound",
"husky",
"impala",
"insect",
"jellyfish",
"kangaroo",
"ladybug",
"liger",
"lion",
"lionfish",
"lizard",
"mayfly",
"mole",
"monkey",
"moose",
"moth",
"mouse",
"mule",
"newt",
"octopus",
"otter",
"owl",
"panda",
"panther",
"parrot",
"penguin",
"pig",
"puma",
"pug",
"quail",
"rabbit",
"rat",
"rattlesnake",
"robin",
"seahorse",
"sheep",
"shrimp",
"skunk",
"sloth",
"snail",
"snake",
"squid",
"starfish",
"stingray",
"swan",
"termite",
"tiger",
"treefrog",
"turkey",
"turtle",
"vampirebat",
"walrus",
"warthog",
"wasp",
"wolverine",
"wombat",
"yak",
"zebra",
"synergy",
"bus",
],
}
export const makeCute = (uuid: string) => {
const word1 =
dictionary.word1List[
parseInt(uuid.slice(0, 2), 16) % dictionary.word1List.length
]
const word2 =
dictionary.word2List[
parseInt(uuid.slice(2, 4), 16) % dictionary.word2List.length
]
return `${word1}-${word2}-${parseInt(uuid.slice(4, 6), 16)}`
}
export default makeCute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment