-
Notifications
You must be signed in to change notification settings - Fork 277
Week 8 Homework
Leslie edited this page Nov 1, 2016
·
14 revisions
- Use a Context-Free Grammar to generate text. It's not required to write any new code for this assignment, you could just play with the examples and document your results in a blog post. Here are some approaches you could take:
- Invent your own grammar and use one of the existing examples to generate text with it. There are lots of example grammars you can find online, though you will likely have to reformat them to be the grammar syntax from my example or JSON.
- Rework any of the example programs to use something other than text (or, at least, text that represents language) as its basic unit. For example: musical notes, songs in playlists, pixels in an image, shapes in a drawing, etc.
- Build a grammar that pulls its terminal words from Wordnik.
- Build a grammar based on a source text as demonstrated here — source code.
- Getting results from a context-free-grammar can be tricky. Consider a twitter bot, and the conciseness of 140 characters. Something short and sweet, highly structured ideas may work well: * A coffee drink order generator. * An apology generator. * An ITP project idea generator. * A knock knock joke generator.
- If you prefer to work on expanding your bot project and creating a display for it, you may do so instead of or in combination with the above assignment. Please add a link and document your progress on your bot below.
- add your question here
- Ruta: save() and saveStrings() saves text one character per line... why so?
- name, links, etc.
- Ruta code, documentation
- Ravyn Tracery Example
- Joakim Worked with L-Systems 1, 2, 3, 4, 5
- Ondina Fractal Tree L-System Blossom Tree
- rebecca [emojiMt.] (https://twitter.com/emojiMountain) info
- Jess Wiki Scraper for UnseenPlacesUSA bot
- daniel L-Systems Brushes
- Jared [Cleaning and Tweaking my Imaginary Word Bot] (https://twitter.com/ImaginaryWotD)
- Marcela Harry Potter Generator
- Chino still working on walker. doesn't do anything visibly different
- Becca [Your Next Candidate] (https://twitter.com/yrcandidate) - still a work in progress
- Leslie embedded Mantra Machine in a page. Also figured out a plan for getting the bot to speak on the pi.