Twitter Mood

Despite the hours of programming I do for my PhD research, I also like to dabble in my spare time with more Web 2.0 things. The main reason I can think for doing this is because it’s something quite simple in comparison to my day-to-day work, and often nicely self-contained.

Recently I wrote a small web script that can determine how positive or negative someone is on Twitter by analysing their individual tweets using a technique known as sentiment analysis.I used a company called Alchemy API that tells you how positive or negative a sentence is using sentiment analysis.

My little program basically tells you how positive or negative any Twitter user is just by analysing their recent tweets. Check out how positive your twitter feed is and post your results in the comments! It also ranks the tweets in order of positivity, so you can see where you might be most negative or positive.

Post navigation

One thought on “Twitter Mood”

RT @jesus: Just once, I’d like a surprise birthday party. (37%)
You beauty @steelershockey (20%)
Thanks @PremierSportsTV wonderful coverage. No better way to spend Saturday night. Becky, Squeeze and Alan (7%)
RT @paullewismoney: RBS/NatWest/UlsterBank – I’m hearing credit cards are working. It is the banking system that’s gone. Déjà vu anyone? (5%)
RT @DHFSUpdate: It is with deep sadness that we have to tell you that Callum Hubbard passed away at 9am this morning. God bless, Callum. A… (-7%)
@fourfivemedia following the game from home as my boy has broken his leg. LETS GO STEELERS! http://t.co/cJHVJTTW (-17%)
@PEAKFMSTUDIO Dronfield Henry Fanshawe school is “CLOSED today due to the treacherous conditions and prediction for more snow.” (-29%)

Another full marathon week of training, but this time the long run was in Bath! I ran through the longest cycling tunnel in Britain – the Combe Down Tunnel – a 1 mile long tunnel on the now-closed Somerset and Dorset Joint Railway line.

Good news from the physio! Apparently the problems with my knee have been caused by a tight IT band on my left leg. There’s no damage to my knee, and with a bit of stretching to that area it should be fine!

So with that good news I set about a full week of marathon training, including a 10km lunch run, an interval session, and my longest run so far: a 33km jaunt along the canal.

I also finally get serious about nutrition for my long run. Turns out you can’t just run a marathon without eating anything during the race, so I need to think about how I’m going to get about 400-500 calories during the race and practice that in my long runs from now on.