code: def setData(self, wordBeforeCursor, wholeWord):
          
          self._typedText = wordBeforeCursor
          self.words = self._makeListOfCompletions(wordBeforeCursor, wholeWord)
          commonStart = self._commonWordStart(self.words)
          self.canCompleteText = commonStart[len(wordBeforeCursor):]
  
          self.layoutChanged.emit()
docs: Set model information