headshot of andytuba (they or he)

   

What is Tracery?

Tracery is a software library that generates text given a grammar which describes what the text could look like (more or less).

The "grammar" is really a template.

History #

Dr Kate Compton, Code Wizard, a.k.a. @GalaxyKate, built the Tracery library in 2015 to generate stories from scripts

Where is it used? #

Now it powers loads of Twitter bots!

Tracery helps 🤖 generate game dialogue, NPCs, props, and scenery.

Tracery output can make images too, like <svg> or specifications for a picrew!

You can ask the 🤖 computer to play Mad Libs with you.

You could use it for all sorts of things like "pick one from column A and one from column B".

Let's look at a quick example on the next page.