Today, I wanted to play around with something fun and a little different – a beverage name generator. I’ve always been fascinated by how companies come up with catchy names for drinks, so I thought, why not try building a simple one myself?
Getting Started
>
First, I brainstormed some key elements. I figured a good beverage name needs a few things:
A Flavor: Something like “Strawberry,” “Lemon,” “Chocolate,” or even something weird like “Pickle.”
A Style: Is it a “Fizz,” a “Juice,” a “Smoothie,” or a “Brew”?
A Vibe: Maybe an adjective like “Electric,” “Cool,” “Midnight,” or “Tropical.”
I started by just jotting down a bunch of words in each of those categories. Just a big, messy list, really. No fancy tools, just a plain text editor.
The First Attempt (Pretty Lame)
>
My first try was super basic. I manually picked one word from each list and stuck them together. This resulted in names like:
“Strawberry Fizz Electric”
“Chocolate Smoothie Midnight”
“Lemon Brew Tropical”
Okay, those were pretty boring. And some were just plain weird (“Pickle Juice Cool”? No thanks!). I realized I needed a way to randomly combine these words. I then tried some online python snippets and started on it.
Then, using the random function, I created something to pick one item from each:
import random
def generate_name(flavors, styles, vibes):
flavor = *(flavors)
style = *(styles)
vibe = *(vibes)
return f"{flavor} {style} {vibe}"
print(generate_name(flavors,styles,vibes))
The Results! (Much Better)
>
Ran it a few times, and boom! I started getting names like:
“Mango Blast Mystic”
“Vanilla Fizz Electric”
“Strawberry Smoothie Cool”
Way more interesting! It’s still simple, but it’s definitely an improvement.
I played around with this for a bit, adding more words to the lists to see what I’d get. It was actually quite addictive! I can totally see how this could be expanded – maybe add options for different types of drinks (alcoholic vs. non-alcoholic), or even include some alliteration for extra catchiness.
This was a fun little project for a few minutes, I might revisit it and turn it into something more polished. Maybe even a simple web app!