code: public void add(Sentence sentence) {
          if (sentence.getAlphabet() != alphabet) {
              throw new IllegalArgumentException("Alphabets do not match.");
          }
          addSentenceToAlphabet(sentence);
          sents.add(sentence);
          numTokens += sentence.size();
      }
docs: TODO: should this be private?