let TwitterAdaptor = require('./adaptors/TwitterAdaptor');
let TwitterSentimentDecorator = require('./decorators/TweetSentimentDecorator');

let totalScore = 0;
let positiveWords = [];
let negativeWords = [];

let twitterAdaptor = new TwitterAdaptor().getTweets("@producthunt").then(tweets => {
    tweets.map(tweet => {
        return new TwitterSentimentDecorator().decorate(tweet);
    }).forEach(tweet => {
        totalScore += tweet.sentiment.score;
        positiveWords = positiveWords.concat(tweet.sentiment.positive);
        negativeWords = negativeWords.concat(tweet.sentiment.negative);
    });
    console.log("A sample size of 100 tweets yielded a " + totalScore/100 + " average sentiment score with " + positiveWords.length + " of words being positive and " + negativeWords.length + " being negative.");
});
@@ -1,16 +1,31 @@
+'use strict';%0A%0A
 let TwitterAdapt

Resolve missing use strict