Skip to content
koji edited this page Dec 19, 2017 · 26 revisions

Assignment

  1. Create a text processing machine as a single page app and/or design an exercise around regular expressions. Some ideas are:
    • Chop up a text into words using split() and rebuild the text as separate <span> elements that you can interact with individually. Here is example code from this video.
    • Create a programmatic version of the algorithm you invented in class and/or for week 1 homework.
    • Analyze the statistical properties of a text like in the Flesch Index example.
    • Create a mad libs generator.
    • Create a "word replacer" (all male pronouns with female, all fruits with vegetables, etc.)
    • Taking inspiration from the Pirate Translator, re-imagine a text using replace().
    • Investigate RitaJS to see what kinds of metadata you can glean from a string. Here is a quick and dirty example that shows you how to get parts of speech tags for words.
  2. In preparation for next week, add a link to an API or some data source (even just data that appears in raw form on a web page) that interests you. I'll use this list to prepare examples for next week.

Questions?

  • add your question here

Data Source / APIs?

Add your name / link to your assignment below

Clone this wiki locally