Need help with scripts?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

134 Stars 29 Forks 7 Commits 2 Opened issues

Services available


Need anything else?

Contributors list

# 272,450
7 commits

Polygraph's Film Dialogue Dataset

04/12/2016 - just pushed a major update of roughly 200 films based on reader feedback. We also decided to remove several datasets that provided additional metadata that wasn't published in the article. :(

Note: I am correcting the csv data as people find errors in our character mapping or omitted characters. Sorry if you end up forking an old data set.

A previous version presented the data as "lines." This turned out to be a very ambiguous word. In reality, we had compiled total number of words, by character, and then converted them to lines using an average of 10 words per line. This is creating more confusion than needed, so we're moving back to just words, which is what is currently in the CSV data to begin with. The minute-by-minute data, however, is still based on lines (i.e., a row of dialogue text).

character_list5.csv - this is the data that powers all of the calculations on It uses the most accurate script that we can find for a given film. People are understandably finding errors, so we will be updating this file as much as possible.

metadata7.csv - this is unique list of IMDBIDs from the character_list file, with additional meta data, such as release year and domestic, inflation-adjusted gross.

The selected scripts and their sources are also publicly maintained here:

To parse the line data in meta_data7.csv: we assume that a minute of dialogue is roughly 14 lines (using average speaking pace 140 words/min. and average words per line of about 10).

So each numeral in the string is the number of MALE lines for half a minute. So if split up the string into groups of two and add the two the numerals, we have total number of male lines of roughly a minute of time.

Here's the js code from the article that we use to parse that string:

    var lineInfo = data.lines_data.match(/.{1,2}/g);

for (line in lineInfo){
  var minuteTotal = +lineInfo[line].slice(0,1) + +lineInfo[line].slice(1,2);
  var row = [minuteTotal,14-minuteTotal];

Each row is an array of [male lines out of 14 representing one minute, female lines out of 14 representing one minute]

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.