The work could transform the way people interact with literature and spark new ways to visualise information, such as audiovisual e-books that generate music according to the emotions on the page or novel music apps, researchers said.
"Given a novel in an electronically readable form, our system - called TransProse - generates simple piano pieces whose notes are dependent on the emotion words in the text," said Saif Mohammad, a computer scientist at the National Research Council Canada.
Along with Hannah Davis, who created TransProse as her master's thesis at New York University, Mohammad used the software to count the density of words associated with the eight basic emotions: anticipation, anger, joy, fear, disgust, sadness, surprise and trust, 'LiveScience' reported.
The algorithm uses databases to rate words according to their emotional value, thereby analysing sentiment in the text and gauging its "emotional temperature".
The algorithm works by splitting the book into four sections: the beginning, early middle, late middle and ending. Then, it generates an emotion profile for each part - a collection of various statistics about the presence of emotional words in the text, Mohammad said.
So far, the scientists have created musical soundtracks for several famous novels, including "Peter Pan" by JM Barrie, "A Clockwork Orange" by Anthony Burgess and "The Road" by Cormac McCarthy, among others.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
