code: public String addAffixForRoot(String word) {
      String result = word;
      if (!this.affixForRoot.equals("*")) {
        result = result + this.affixForRoot;
      }
      return result;
    }
docs: Given a word, adds an affix to build the root, if necessary.
  
  @param word
  the token
  
  @return the resulting token