APIs and Libraries
Promises and async/await
NLP Libraries
Data and APIs
JSON
Dictionary / Lexicon / Word Finding APIs
JavaScript nuts and bolts
APIs
Tabular Data
Reading
Assignment
-
Load βexternalβ data in a browser-based text experiment. You may use the p5 loadJSON() function featured in many of the video tutorials, but this is also an opportunity to explore the JavaScript fetch API with await
and async
as found in these examples. See above for relevant video tutorials. Here are some ideas:
- Look through Corpora and download JSON files for use in a p5.js sketch. For this I suggest using
loadJSON()
directly.
- Use RiTa.js or Compromise to analyze and/or modify text.
- Use an API like Datamuse or Wordnik to lookup meta-data about a word.
- Try using another API from the examples (NYTimes, Wikipedia, etc.) or pick your own not from the examples!
-
Document your experience working with the library, API, or data source in a blog post and consider the following questions (stemming from the Excavating AI reading.
- What is the origin of the data?
- Who had the power to collect, label, and make available the data?
- If you had to create a βdata biographyβ (Thank you to Ellen Nickles for this term), what would you include? Have the maintainers of this dataset or API made this information easily available?
- What potential harms could result from the collection, use (or misue) of the data?
Add your assignment below via Pull Request
(Please note you are welcome to post under a pseudonym and/or password protect your published assignment. For NYU blogs, privacy options are covered in the NYU Wordpress Knowledge Base. Finally, if you prefer not to post your assignment at all here, you may email the submission.)
Emoji Key for Video Tutorials, Readings, and more
- π¨ Watch this video tutorial! (this is technical info needed for the examples). Of course if you alreaddy know this material, you can skip.
- π’ This is found in a group, maybe pick just one to check out!
- πΏ Additional video if you have a particular interest and want to do a deeper dive.
- π Required reading! Letβs make sure we all have read this.
- π Optional additional reading for a deeper dive.
- π» Code examples here!
- π Extra reference material / link