First half just applies to mac imessage users, but the technique works for any data set of text messages with a similar schema.
The most positive message I’ve received is a campaign fundraising advertisement (as scored by VADER)
Texts are stored in a sqlite database and sentiment analysis is done with Natural Language Toolkit
No demo for privacy reasons, but making a drag and drop version of this might be interesting for more end users
Read the source code for more!