Silly Tasting Notes Generator
A Perl script to generate silly random tasting notes - by Greg Sumner.

Back to Tech

See it here

After tasting a ton of wines on our recent Sonoma trip, we started talking about all of the adjectives used to describe wines in those little notes you read on them. We got to wondering how they came up with all those adjectives. Laurel had the idea to make a book of wine tasting note words, and me being a computer geek thought it'd make a great Perl script for the web page. After a while I came up with the Silly Tasting Notes Generator 1.0 (STNG 1.0 - No relation to Star Trek: The Next Generation).

The script has moved to here.

About the idea.
The note format here is based on the actual tasting notes you can find at the Wine Spectator web site (obligarory link here.)

Now WAP enabled.
The swng now works on mobile devices. Why would you want to do this? I don't know. But you can. Here's how.

  1. Open your wireless device (cell phone, PDA, whatever) and turn on the web browser.
  2. Make a new shortcut or URL link to this address:
  3. For extra silly use this address:
  4. Save the bookmark. Voila, now you can generate notes from wherever you happen to be.

How it works.
It's very simple. I put word types into arrays, then chose a word at random out of the array. The tasting note comes out in the following structure:

 (Intro) (Modifier) (Adjective) (Varietal).
 (Adverb) (Adjective) (Flavor) flavors, (Adjective) (Flavor), and (Strength-word) (Flavor).
 Drink (When) through (EndWhen).  

If you give it the paramater "silly=yes" it'll use the SillyFlavors array instead of the Flavors array. Rather than make sure it doesn't repeat any adjectives, I just put enough in there so the odds of the same one coming up again are pretty low. It will still happen about 1 in 30 times though. Honestly I think the "regular" ones are funnier than the Extra-Silly ones because they actually spit out something you might see in a magazine.

It defaults output as a server-side include so you can embed the TN on a page. It will also act as a stand-alone CGI, but without any pretty markup. You would call it as a CGI with the paramater "pagetype=webpage" if you want it to print a legal HTML page.

You can try that with the button here:


Back to Tech
Back to Home.