Does a novelist have an emotional shape you could plot? 2019, and the answer was no.
An author's books might share an emotional shape — some arc you could see if you plotted feeling against position in the text. Find it in one Fitzgerald novel, check it against the other three, and you'd have something.
paragraphs = novel_as_string.split("\n\n")
for single_para in paragraphs:
x += 1
blob = TextBlob(single_para)
sentiment_value.append(blob.sentiment.polarity)
sentiment_position.append(x)
plt.plot(sentiment_position, sentiment_value)There is no window, no stride, no smoothing and no normalisation. One paragraph in, one number out, straight onto the axis. That is the entire design, and every problem below follows from it.
The plot is noise. Polarity swings hard between adjacent paragraphs and never settles into anything you could call an arc. No shape to compare between books, so nothing to compare. Shelved a few days after it started.
Being precise about why is the useful part:
The fixes are windowing and smoothing — score overlapping chunks rather than paragraphs, then
take a rolling mean. That is exactly what Prose Similarities
does a year later with its scale and jump parameters, and it does produce
curves you can read. The question itself was retired properly by
Literature Mutations, which drops sentiment altogether in
favour of distinctive vocabulary — and finds real structure.