Today, that changes thanks to the work of Andrew Reagan at the Computational Story Lab at the University of Vermont in Burlington and a few pals. These guys have used sentiment analysis to map the emotional arcs of over 1,700 stories and then used data-mining techniques to reveal the most common arcs. “We find a set of six core trajectories which form the building blocks of complex narratives,” they say.Their method is straightforward. The idea behind sentiment analysis is that words have a positive or negative emotional impact. So words can be a measure of the emotional valence of the text and how it changes from moment to moment. So measuring the shape of the story arc is simply a question of assessing the emotional polarity of a story at each instant and how it changes.Reagan and co do this by analyzing the emotional polarity of “word windows” and sliding these windows through the text to build up a picture of how the emotional valence changes. They performed this task on over 1,700 English works of fiction that had each been downloaded from the Project Gutenberg website more than 150 times.
Source: Data Mining Reveals the Six Basic Emotional Arcs of Storytelling