"Catalonia Independence sentiment analysis- Alvaro Bueno"
"12/5/2017"
The project consists of Performing sentiment analysis in Catalonia news content from diverse sites. The sources correspond to articles from december, november and october. Where an independence referendum and other remarkable events have taken place.
Since 2010 where some regional autonomy laws were stripped from Spain constitution, there has been a power struggle between catalonia and spain (the central government).
2016 and 2017 Have been very intense.
Catalonia wants to be independent even before spain.
Home to ancient community with traditions and language still thriving.
Catalan News, BBC, The Guardian, The independent, AbcNews, NPR, La Vanguardia, El periodico, RTE.ie, Al Jazeera and Bloomberg
The data was gathered in Descending order.
using the analyzeSentiment library we proceed to plot the variability in sentiment across the mined documentts.
sent_english <- analyzeSentiment(as.character(df[df$lang=='EN',]$content))
sent_spanish <- analyzeSentiment(as.character(df[df$lang=='ES',]$content), language='spanish')
sent_abc <- analyzeSentiment(as.character(df[df$newscompany=='abcnews',]$content))
sent_periodico <- analyzeSentiment(as.character(df[df$newscompany=='periodico',]$content), language='spanish')
sent_ctn <- analyzeSentiment(as.character(df[df$newscompany=='CTN',]$content))
sent_jaz <- analyzeSentiment(as.character(df[df$newscompany=='aljazeera',]$content))
sent_bbc <- analyzeSentiment(as.character(df[df$newscompany=='bbc',]$content))
sent_gua <- analyzeSentiment(as.character(df[df$newscompany=='guardian',]$content))
sent_bbg <- analyzeSentiment(as.character(df[df$newscompany=='bberg',]$content))
sent_ind <- analyzeSentiment(as.character(df[df$newscompany=='indep',]$content))
sent_npr <- analyzeSentiment(as.character(df[df$newscompany=='npr',]$content))
sent_rte <- analyzeSentiment(as.character(df[df$newscompany=='rte.ie',]$content))
plotSentiment(sent_english)
plotSentiment(sent_spanish)
plotSentiment(sent_ctn)
plotSentiment(sent_jaz)
plotSentiment(sent_gua)
plotSentiment(sent_npr)
The graph corresponding to Catalan News (third graphic, the most mined news source) is peaking at the end, the dates corresponding at october when the polls just started to be declared illegal by the central government in spain and the vote continued as promised.
These days were particularly evenful in the press because of the violence applied by police to voters.
The low numbers in the left part of the English graph (First graphic) shows that the press keeps an easy or moderate tone to inform uneventfully as the days go by, Specially when the turnout of events it's not positive for Spain.
We can expect a similar increase of internet reactions in the days close to the new vote of december 21 if the events turn violent like the ones that happened in october.