code: public static String setTermTypeNAF(final String postag) {
      if (postag.startsWith("N") || postag.startsWith("V")
          || postag.startsWith("G") || postag.startsWith("A")) {
        return "open";
      } else {
        return "close";
      }
    }
docs: Set the term type attribute based on the pos value.
  
  @param postag
  the postag
  @return the type