›Write the sentiment score function
1.4 · Challenge

Write the sentiment score function

In this challenge, you will write sentiment.score, a function that scores a piece of text with the VADER sentiment library and returns the result as a map.

The tests in src/test/java/sentiment/ScoreTest.java describe what the function must do. They check four cases: positive text, text in capitals, blank text and null.