Skip to content
Joohyun Park edited this page Sep 19, 2018 · 37 revisions

Assignment

Design an exercise around regular expressions and/or an nlp library (like RiTa or Compromise). Here are some ideas if you are feeling stuck! (To be clear, just do one thing, and writing code is not required for this assignment!)

Regular Expressions

  • Experiment with using Regular Expressions in a text editor. What new powers does this unlock in your workflow? Write up a post documenting your experiments.
  • Play an online Regular Expressions game. Write up a post documenting your experience.

Regular Expressions in JavaScript

  • 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.
  • Use Regular Expressions to augment the Flesch Index example.
  • Create a mad libs generator.
  • Create a "word replacer" (all male pronouns with female, all fruits with vegetables, etc.)

RiTa

Investigate RitaJS to see what kinds of metadata you can glean from a string. Here are a few examples to get your started.

Data Source / APIs?

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.

Add your name / link to your assignment below