-
Notifications
You must be signed in to change notification settings - Fork 20
Week 2 Homework
Joohyun Park edited this page Sep 19, 2018
·
37 revisions
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!)
- 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.
- 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.)
Investigate RitaJS to see what kinds of metadata you can glean from a string. Here are a few examples to get your started.
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 API / data source here
- from Assel: Wolfram alpha offers a range of api. For example, conversational api. Documentation is available here
- From Itay: Yad Vashem Holocaust database. Yad Labanim is an Israeli volunteer organization dedicated to commemorating the fallen of israel soldiers and Israeli bereaved families.
- From Chelsea: Urban dictionary api
- From Amena: API of curse words (https://www.npmjs.com/package/bad-words)
- From Chuyi: the Star Wars API (https://swapi.co/)
- From Mengzhen: PoetryDB API
- Name - Project Name
- Hadar – Bukowski Chrome extension
- Jenna - Markov Oracle
- Joohyun - Variation by Markov Chain
- Assel - exploring regular expressions, which are used to denote regular languages. Tried to prove Kleene's theorem, looked at the proof, tried to understand its' "beauty". Used regex functions in R (i.e. grep, regexpr, sub, etc) for data wrangling
- Yuhao - Show different tense
- Yeonhee - Another Story
- Ella - Ice Dream
- Mengzhen - New Poetry
- zahra - RegEx in VisualStudioCode
- Shawn -cut cut cut
- James - Word Replacer
- Itay - Things Mash Up
- Chuyi - Jumbled Letters Renewed