How to extract only dialogues of a main character from a movie script

Viewed 253

I would like to build a corpus for movie scripts to analyze gender representation in film discourse. I would like to know a way to process .pdf or .txt format of movie scripts so that I can:

  1. separate dialogues from scenes
  2. extract only the dialogues of the main character (providing all names are in caps, and lines are separated by linebreak)

here is a screenshot of the script

Thank you!

0 Answers
Related