A Chrome extension that hides negative content on Facebook.
This is my first venture into Natural Language Processing, specifically Sentiment Analysis. To analyze the tone of passages in this extension, I'm using SentiWordNet.
- Iterate on each piece of content (i.e. facebook post)
- Iterate on each sentence
- Iterate on each word
- Remove insignificant contraction endings (like 're and 's)
- Determine weighted positive/negative score of each word
- Ignore common words (prepositions, conjunctions, etc)
- Look around the word for negation (not, isn't) or emphasis (very)
- Average the word scores for the sentence score
- Average the sentence scores for the passage score
- Check against threshold negative value and hide
- Public votes on links—let users vote on whether a link leads to negative content, and hide it for future readers
- Custom negativity treshold (hide extreme negativity, slight negativity, or all negativity)