the Andrew Bailey

Here's some more wisdom from Spruce:

A quick tax will gain morning though a family will belt.

Statuesque servant will coordinate forward addition whereas irate books will lock outwards.

The stiff popcorn backloged once though meddlesome surprises inched.

Routine will be closing suave shoe.

A rate will frolic soon puce quill.

The slick trouble smells already haggard.

Yams will have been doubling inward profuse board.


Spruce is a random sentence generator written in Python. It has found a home on this server, and likes it here.

It was one of those late-night epiphanies, you see. It was during the three week summer break of 2008, and everyone had left the apartment to go home. It was just me and my machines having a good time.

A passing thought wandered by: Write a book on programming. Then I wondered, if I did, what kind of examples would I put in it. I began thinking away. Being pretty good at English (and having absolutely adored the English course the previous quarter), I realized that parts of speech could map easily to an object-oriented paradigm. "Make a random sentence generator," I thought.

Being past 4am, low on sleep, and not having seen a soul in a few days, I thought it was the best thing ever. Thought about how funny it would be. After a day or two, it started forming complete sentences. "Lesiure is a limp spruce" was one of the first sentences generated. Being of a relaxed mind at the time, it caught my attention: it just named itself.

It was entered at my college's coding contest the next quarter. It didn't get me any prizes, but it intrigued many people. I eventually got it working with the Windows speech API... creepy.

When I started coding this blog, I got a second epiphany: stuff Spruce into Jython, put it on my blog, and have a sentence spit out on every request. Then when I made my RSS library, I made an RSS feed for Spruce.

So here you are.