public WordEntry addNewWord(final String str){
  final String key=trimWord(str);
  WordEntry entry=words.get(key);
  if (entry == null) {
    entry=new WordEntry();
    entry.setType(new ExpressionType(""));
    entry.setNormalized(key);
    words.put(key,entry);
  }
 else {
    logger.warn("word already known: " + str + " -> "+ entry.getNormalized());
  }
  return entry;
}

public WordEntry addNewWord ( final String str ) { final String key = trimWord ( str ) ; WordEntry entry = words . get ( key ) ; if ( entry == null ) { entry = new WordEntry ( ) ; entry . setType ( new ExpressionType ( "" ) ) ; entry . setNormalized ( key ) ; words . put ( key , entry ) ; } else { logger . warn ( "word already known: " + str + " -> " + entry . getNormalized ( ) ) ; } return entry ; }
add a new word to the list in order to remember it later .
