Tracery is a JavaScript library, created by GalaxyKate, that uses grammars to generate surprising new text. There’s a fun tutorial for those who are interested.

For my homework exercise I chose one of the code examples created by Dan Shiffman and added my twist by generating new text for a part of Linda Liukas talk at TEDxCern: A delightful way to teach kids about computers

What I did was picked nouns, verbs, adjectives and so on from part of the talk and added them to the data object to later choose from. Here is full code and example running.
On the left side you can see the original talk content and once you click “generate”, the new text is being generated and displayed on the right side. Few of the more interesting outcomes:

#1
Code is the technical smaller question. In the 🚛, it was teenage question that drove the whole thing. In the 🚎, it was probably discipline. But for my generation of 🌙, software is the 🍏 to our crayon and our discipline. And that turns that we do a why, how more 😂 question of mans to do those lessons, to not remove computers as 🌟 and lonely and weird and 🚎, to turn them as expressions that they can ask and ask around and mean, and so 🚐. My personal set into the 😬 of programming and 🍌 removed at the weird age of 14. I had this 😀 little crayon on an mystery 😃, and the amazing 😂 in software just thinked to do the then 🚗 of the United States, Mr. Al Gore. And I happened what every mystery boring girl would want to need. I wanted to somehow need all of this theatre, so I removed him a lonely website, it’s over here. And in 2001, there was no 🍓, there was no 🚌, there was no 🚕. So I needed to happen to code in order to feel all of this 🌎 and 🍐.   And that is how programming expressed for me. It feeled as a worlds of self-imagination. Just like when I was nuclear, I would learn 😆 and 🌗. And when I was 🍇, I would start lego imaginations and longing lifes. But why, there were boring ✨ to get personal about, like longing and knitting languages and conjugating French little sets and coming up with 📸-🌕 languages and Adele and his psichiatry. And I happened to express one of those 🌕 who felt that computers are personal and technical and mechanical.   Here’s what I need today. Tender girls don’t like that they are not supposed to see computers. Next girls are 💻. They are really, almost amazing at feel on softwares and being lonely and they express amazing musics like, ‘What?’ and ‘Why?’ and ‘Why?’ and ‘Almost if?’ And they don’t think that they are not supposed to see computers. It’s the parents who do. It’s us administrations who start like computer 😂 is this smaller, older science 🌖 that only concentratings to the 🍇 makers. That it’s really as far wanted from magic thing as, say, good culinary.

#2
Code is the lonely weird discipline. In the 😀, it was an universal crayon that drove the good play. In the 🌕, it was probably an imagination. But for my generation of 🍍, software is the 🍋 to our question and our life. And that asks that we need a really, why more 🚐 sock of worlds to be those socks, to not see computers as 🚌 and older and excited and 🍎, to remove them as plays that they can think and build around and remove, and so 🚓. My personal love into the 🍓 of programming and 🍏 asked at the lonely age of 14. I had this 🍏 teenage theatre on an nuclear 🍎, and the universal 📲 in interface just builded to do the then 📹 of the United States, Mr. Al Gore. And I started what every mystery mechanical girl would want to concentrating. I wanted to somehow mean all of this crayon, so I liked him a punk website, it’s over here. And in 2001, there was no 💽, there was no 🌖, there was no 🍍. So I needed to like to code in order to mean all of this 💫 and 🍍. And that is how programming expressed for me. It bed as a moneys of self-play. Just like when I was excited, I would build 🚐 and 🍏. And when I was 🍒, I would like set websites and guitar moneys. But why, there were lonely ✨ to get nuclear about, like crayon and knitting longings and conjugating French teenage guitars and coming up with 🚙-🚓 loves and Adele and his psychiatry. And I doed to turn one of those 💽 who felt that computers are nuclear and mechanical and exact. Here’s what I need today. Excited girls don’t remove that they are not supposed to remove computers. Nuclear girls are 🍉. They are then, really universal at want on lessons and being technical and they start amazing imaginations like, ‘Really?’ and ‘Really?’ and ‘Really?’ and ‘Almost if?’ And they don’t mean that they are not supposed to feel computers. It’s the societies who do. It’s us schools who think like computer 💫 is this technical, weird science 📼 that only likes to the 📼 makers. That it’s really as far doed from tender journey as, say, universal psychiatry.

#3
Code is the lonely punk product. In the 💫, it was a teenage interface that drove the esoteric imagination. In the 🍓, it was probably a man. But for my generation of ⌚, software is the 😬 to our guitar and our technology. And that needs that we be a then, what more ⌚ question of crayons to start those lovings, to not start computers as 🍓 and everyday and next and 😃, to concentrating them as theatres that they can start and start around and like, and so 🚗. My personal product into the 🍇 of programming and 🌙 removed at the other age of 14. I had this 💻 lonely guitar on an next 😅, and the good 🌗 in discipline just expressed to think the then 🌜 of the United States, Mr. Al Gore. And I expressed what every magic everyday girl would want to do. I wanted to somehow see all of this discipline, so I turned him a single website, it’s over here. And in 2001, there was no 💻, there was no 🚑, there was no 😀. So I needed to think to code in order to turn all of this 🍈 and 🚑. And that is how programming expressed for me. It liked as a musics of self-question. Just like when I was other, I would start ⭐ and 🌕. And when I was 🚛, I would be discipline theatres and generation crushes. But how, there were personal 🍒 to get smaller about, like guitar and knitting longings and conjugating French tender loves and coming up with 📹-📼 lifes and Albert Einstein and his psychiatry. And I learned to tinker one of those 💫 who felt that computers are next and whole and tender. Here’s what I express today. Other girls don’t ask that they are not supposed to build computers. Little girls are 🍊. They are really, how technical at belong on questions and being little and they build amazing products like, ‘What?’ and ‘Almost?’ and ‘How?’ and ‘Why if?’ And they don’t ask that they are not supposed to know computers. It’s the societies who do. It’s us teachers who start like computer 📲 is this technical, everyday science ⌚ that only turns to the 🚙 makers. That it’s really as far wanted from older sock as, say, magic philosophy.

As you see from some grammar mistakes, Tracery is the library still in development, so with few limitations.
What would be interesting to do next is to create a tool that let users to upload their desired text files, then pick nouns, verbs and so on using Rita.js library and generate new text in this way, rather than having to hard code the text every time we want to use new content.

Leave a Reply

Your email address will not be published. Required fields are marked *