Programming with Text

This course focuses on programming strategies and techniques behind procedural analysis and generation of text-based data.

We’ll explore topics ranging from evaluating text according to its statistical properties to the automated production of text with probabilistic methods to text visualization. Students will learn server-side and client-side JavaScript programming and develop projects that can be shared and interacted with online.

There will be weekly homework assignments as well as a final project.

session #2: Regular Expressions

Session 2 - “Regular Expressions” of my Programming with Text video series.

#2.1

Introduction to Regular Expressions

15 Sep 2016

In this video I introduce Regular Expressions. What are they and how are they used?

#2.2

Meta-characters

16 Sep 2016

In this video I discuss meta-characters: what are they and what role do they play in regular expressions?

#2.3

Character Classes

16 Sep 2016

In this video, I explain character classes which are a way of matching a selection of characters in a regular expression.

Watch all sessions

session #10: Chatbots

Session 10 - “Chatbots” of my Programming with Text video series.

#10.2

Chatbots with RiveScript

12 Oct 2017

In this video I cover RiveScript: a simple scripting language for chatbots with a friendly, easy to learn syntax.

#10.3

Text-to-Speech with p5.Speech

19 Oct 2017

In this video, I use the p5.Speech library for text-to-speech (TTS). The p5.Speech library is an initiative from the NYU Ability Project.

#10.4

Speech Recognition with p5.Speech

20 Oct 2017

In this video, I use the p5.Speech library for speech-to-text, i.e. speech recognition. The p5.Speech library is an initiative from the NYU Ability Project.

Watch all sessions

session #11: Chrome Extensions

Session 11 - “Chrome Extensions” of my Programming with Text video series.

#11.1

Introduction to Chrome Extensions

13 Nov 2017

This video introduces a new topic in the Programming with Text playlist: Chrome Extensions!

#11.2

Bookmarklets

13 Nov 2017

In this video, I cover Bookmarklets, a simple way to modify run JavaScript code to modify browser content via a bookmark button.

#11.3

Content Scripts

14 Nov 2017

In this video, I cover “content scripts” for chrome extensions. The content script is a JavaScript file that runs in the context of a web page (and can be used to modify that page.)

Watch all sessions