Sentiment Analysis Swift Playground
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
SentimentlySwift.playground Update to add guards for empty values Jul 6, 2017
.gitignore Initial commit Jul 2, 2017
LICENSE Initial commit Jul 2, 2017 Update Jul 6, 2017


A Sentiment Analysis Swift Playground using the AFINN-165 wordlist and Emoji Sentiment Ranking to perform sentiment analysis on a given phrase.

More details available in this blog post.


  • Provider own weight adjustments or use the defaults
  • Phrase tokenized using NSLinguisticTagger - Lemmatization word matching used to determine weights
  • Override / provide weights at an instance or phrase level


  • English only, ie AFINN and Emoji Ranking are in English. Would be grateful for PRs with additional language support
  • Swift 3 support, only at the moment


  • CocoaPods Support
  • Swift 4

SentimentlySwift is based on the sentiment and sentiment-v2 node.js packages.