code: private boolean fitsInSentence(String word, List<String> sentence, boolean addSpaces) {
          String stringSentence = getSentenceFromList(sentence, addSpaces);
          stringSentence += word;
  
          float sentenceWidth = getPaint().measureText(stringSentence);
  
          return sentenceWidth < viewWidth;
      }
docs: Verifies if word to be added will fit into the sentence
  
  @param word      Word to be added
  @param sentence  Sentence that will receive the new word
  @param addSpaces Specifies weather we should add spaces to validation or not
  @return True if word fits, false otherwise.