In this fun analysis, I take Star Wars movie screenplays and look at word frequencies and sentiment across films in the original and prequel trilogies. I also look briefly at the one of the newer movies and make a comparison to the originals. I scrape the texts from the the Internet Movie Script Database in the R-Markdown. I have also added backup copies of these texts in the "./data" directory.
The R markdown file can be found in the same directory as this README, along with a pre-rendered markdown file. The scripts are found in the data folder.
Analysis
Screenplays
-
library(tidyverse) - tidy data functions
-
library(rvest) - for working with html data on websites
-
library(tidytext) - tidy text data functions