String getFirstTag(String word) { TagCount count = dict.get(word); if (count != null) { return count.getFirstTag(); } return null; }