/SentimentlySwift

Sentiment Analysis Swift Playground

Primary LanguageSwiftMIT LicenseMIT

SentimentlySwift

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.

Features

  • 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

Considerations

  • 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

Roadmap

  • CocoaPods Support
  • Swift 4

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