     }
 }
 
-//extension KeymochiKeyboardViewController: SentimentAnalysisDelegate{
-//    func getSentiment(_: SentimentKeyboard, getSentimentFor phrase: String) {
-//        phrase = getPhrase
-//    }
-//    self.printSentiment(phrase)
-//}

        var ratingArr: [NSNumber] = []
        for unformString in wordArr {
            var newWord = unformString.lowercased()
//            print("positiveWords, ", positiveWords)
            if positiveWords.contains(newWord) {
                ratingArr.append(1)
            } else if negativeWords.contains(newWord) { ratingArr.append(-1) }

			defaults.set(false, forKey: KeymochiKeyboardViewController.kHasAssessedEmotion)
		} else if !hasAssessedEmotion && keepUsingTime > keepUsingThreshold {
			promptAssessmentSheet()
            // Do this in view did disappear//            
//            if let components = textDocumentProxy.documentContextBeforeInput?.components(separatedBy: " "){
//                print ("sentence in switchAssesmentState is", components)
//                let sentAfterPam = getSentiment(wordArr: components)
//                print ("sentiment in has switch assessment state", sentAfterPam)
//            }
//            

		}
		defaults.set(Date(), forKey: KeymochiKeyboardViewController.kLastOpenTime)
