A new program by British scientists is able to map the mood of a country on Twitter.
The program, called Emotive, scans 2000 tweets a second, attaching one of eight possible human emotions to each tweet, the BBC reported.
The scientists, from Loughborough University, claim that the program could help calm civil unrest and identify public safety threats.
The scientists used the murder of British soldier Lee Rigby as an example of the program's work.
"Following the murder of solider Lee Rigby in Woolwich there was an outpouring of sadness and disgust through Twitter," said Professor Tom Jackson, who led the team.
His family called for calm two days after the incident, saying that their son would not have wanted his name to be used as an excuse to carry out attacks.
"This appeal had an almost immediate effect, leading to an outpour of positive sentiment."