Sentiment analysis in Elixir - afinn has been released
Last week, I released the first version of afinn library for Elixir. It’s a very simple library for sentiment analysis.
Just add it to mix.exs
:
def deps do
[
{:afinn, "~> 0.1.0"}
]
end
And then we can use it like this:
text = 'I love this!'
Afinn.score(text)
#=> 3
Afinn.score_to_words(text)
#=> :positive
Some ideas for further development:
- Improve documentation
- Add more languages
- Add emoticons/emoji support
- Add support for multi-word expressions (“bad luck”, “no fun” etc.)