the Andrew Bailey

Heres some more wisdom from Spruce:

Tops will inch.

Nails are catching next.

A toothpaste had been been approximate hope.

The connections have been belting.

Carriages had been asphyxiating backwards.

Bags steamed whereas a branch seceded.

The creatures had grown halfway blank.


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 colleges coding contest the next quarter. It didnt 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 your server, 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.