For all the yelling Frank and Estelle Costanza did on Seinfeld, the ever-present 1990s sitcom, they weren’t the angriest characters on the show, according to an algorithmic analysis from CompassRed’s Data Lab project.
Data scientist Daniel Larson had an algorithm scour through the 53,629 lines of text that make up the show’s 177 original episodes and sort them by sentiment (similar to this analysis of President Donald Trump’s tweets.)
The results from the analysis are broken down in a blogpost penned by Larson and Technical.ly Delaware alum Joey Davidson. A trio of interactive infographics lets users explore the data by character, match up season against season or see which of the main four characters had more lines through the years.
“The algorithm in this analysis moved through every spoken line in the show and scored the words used in a host of categories,” the post reads. “Each line might include words that the algorithm deemed indicative of fear, joy, trust, surprise or sadness. The line would also have an overall positive or negative emotional score.”
The project leveraged something called the NRC emotion lexicon (basically a list of words with associated emotions and sentiments) and an R package called tidytext to quantify the sentiment in each line of dialogue.
Yada, yada, yada: So who was the angrier character in the show’s nine-season run? None other than outrageous, egregious, preposterous attorney Jackie Chiles.
See the studyThere might be a business application for the lil experiment, the duo said.
“Think of a data science team that moves through a dataset like, say, tweets about a given business or product with a similar algorithm in hand,” Larson and Davidson wrote. “Gleaning customer emotion from the huge dataset they create by using social media on a massive scale would offer intangible value to the decisions and movements of business.”
Before you go...
Please consider supporting Technical.ly to keep our independent journalism strong. Unlike most business-focused media outlets, we don’t have a paywall. Instead, we count on your personal and organizational support.
3 ways to support our work:- Contribute to the Journalism Fund. Charitable giving ensures our information remains free and accessible for residents to discover workforce programs and entrepreneurship pathways. This includes philanthropic grants and individual tax-deductible donations from readers like you.
- Use our Preferred Partners. Our directory of vetted providers offers high-quality recommendations for services our readers need, and each referral supports our journalism.
- Use our services. If you need entrepreneurs and tech leaders to buy your services, are seeking technologists to hire or want more professionals to know about your ecosystem, Technical.ly has the biggest and most engaged audience in the mid-Atlantic. We help companies tell their stories and answer big questions to meet and serve our community.
Join our growing Slack community
Join 5,000 tech professionals and entrepreneurs in our community Slack today!