 		} else if !hasAssessedEmotion && keepUsingTime > keepUsingThreshold {
             
             createOverlay()
-
-//			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)
 	}

	
	private func updateAutoCorrectionSelector() {
		if currentWord == "" {
			(self.bannerView as! AutoCorrectionSelector).updateButtonArray(words: [])
		} else if let completions = getSuggestedWords()?.completions.filter({ $0 != currentWord }) {
			var partialGuesses: [String]
			if completions.count < 2 {
				partialGuesses = ["\"" + currentWord + "\""] + completions

        
        keys.append(key)
		
		if let word = textDocumentProxy.documentContextBeforeInput?.components(separatedBy: CharacterSet(charactersIn: " \n")).last! {
			currentWord = word
		}
        if key == " " || key == "\n" {
			if let firstGuess = getSuggestedWords()?.gussess.first {
				replaceWord(replacement: firstGuess)
			}
