code: public String tag(final String word, final String posTag) {
      final List<WordData> wdList = this.dictLookup.lookup(word.toLowerCase());
      String newPosTag = null;
      for (final WordData wd : wdList) {
        newPosTag = wd.getTag().toString();
      }
      if (newPosTag == null) {
        newPosTag = posTag;
      }
      return newPosTag;
    }
docs: Get the postag for a surface form from a FSA morfologik generated
  dictionary.
  
  @param word
  the surface form
  @return the hashmap with the word as key and the postag as value