code: private void addWord(String word, boolean containsNewLine) {
          currentSentence.add(word);
          if (containsNewLine) {
              sentences.add(getSentenceFromListCheckingNewLines(currentSentence));
              currentSentence.clear();
          }
      }
docs: Adds a word into sentence and starts a new one if "new line" is part of the string.
  
  @param word            Word to be added
  @param containsNewLine Specifies if the string contains a new line