views:

245

answers:

6

Is there a twitter API that returns mood? I have seen some websites that return the mood of a specific tweet and I want to be able to use an API (or to use some open source code) to get the mood of a tweet, does anyone know if there is an easy way to do that or if there is an already built API for this?

A: 

Most of the websites you see doing that are using a general technique called sentiment extraction. There are many possible implementations, but a simple (somewhat naive) one is to make a list of "bad" words ("shouldn't", "angry", "evil", "allergic") and a list of "good" words ("happiness", "joyful", "smiling", "wonderful"). Assign a "mood score" to each word (or just -1 to bad words and +1 to good words). The total score is the "mood'.

This is a naive approach because many words require context to understand. (For example, a Bostonian describing something as "wicked good" is making a doubly positive remark, not canceling out the following word.) Still, it may be suitable for your purposes.

John Feminella
A: 

I don't think I've seen any Twitter tweets mood API around, but someone made it possible through the use of Twitter API. http://i8news.uterm.org/mood/twitter-mood-reader/

The logic was to read through the tweets and by calculating the emotional words (such as "wow", "happy", "!", "darn"), you get the overall mood of that tweet.

thephpdeveloper
does that application have an API that I could use?
A: 

You'd probably want to use another API to do sentiment analysis on the tweets you want to extract moods from. Open Amplify is probably a good one to start with http://community.openamplify.com/content/docs.aspx/.

minimalpop
A: 

There's a new free API from TweetFeel that uses advanced linguistic processing to determine sentiment (mood). Take a look at http://www.webservius.com/corp/docs/tweetfeel_sentiment.htm

Eugene Osovetsky
A: 

I work for OpenAmplify if you want more info or help... let me know.

Good luck!

Dave Weinberg Community Manager | OpenAmplify | [email protected]

Dave Weinberg
A: 

I did a project involving Sentiment Analysis of Tweets. I used a machine-learning sentiment analyzer called 'LingPipe'. Unfortunately, it requires you to design your program in Java (I know you tagged your question under PHP), and to make a fairly decent training set from your raw data (very tedious work). However, if you do have Java skills, and time, then it's fairly easy to use, and extremely speedy.

rohanbk