[1] -1.50 -1.25 1.75
Fall 2025
One approach is to make a dictionary of words associated with each emotion:
Positive
Negative
From the NRC Word-Emotion Association Lexicon
This produces a sentiment score.
But:
There are ways to work around these issues:
A better approach is to use a language model that understands context, which we’ll discuss soon
The syuzhet package implements simple sentiment analysis:
syuzhet can also be used for sentiment trajectories, measuring the development of sentiment sentence-by-sentence through a text
(from syuzhet vignette)
Could this measure narrative arcs, distinguishing tragedies from comedies from dramas?


(Gao et al. (2016), figs 1 and 2)