private static String mapUDTagSetToNAF(final String postag) {
    if (postag.equalsIgnoreCase("ADV")) {
      return "A"; // adverb
    } else if (postag.equalsIgnoreCase("CONJ")
        || postag.equalsIgnoreCase("SCONJ")) {
      return "C"; // conjunction
    } else if (postag.equalsIgnoreCase("DET")) {
      return "D"; // det predeterminer
    } else if (postag.equalsIgnoreCase("ADJ")) {
      return "G"; // adjective
    } else if (postag.equalsIgnoreCase("NOUN")) {
      return "N"; // common noun
    } else if (postag.equalsIgnoreCase("PROPN")) {
      return "R"; // proper noun
    } else if (postag.equalsIgnoreCase("ADP")) {
      return "P"; // preposition
    } else if (postag.equalsIgnoreCase("PRON")) {
      return "Q"; // pronoun
    } else if (postag.startsWith("V")) {
      return "V"; // verb
    } else {
      return "O"; // other
    }
  }
private static String mapUDTagSetToNAF ( final String postag ) { if ( postag . equalsIgnoreCase ( "ADV" ) ) { return "A" ; } else if ( postag . equalsIgnoreCase ( "CONJ" ) || postag . equalsIgnoreCase ( "SCONJ" ) ) { return "C" ; } else if ( postag . equalsIgnoreCase ( "DET" ) ) { return "D" ; } else if ( postag . equalsIgnoreCase ( "ADJ" ) ) { return "G" ; } else if ( postag . equalsIgnoreCase ( "NOUN" ) ) { return "N" ; } else if ( postag . equalsIgnoreCase ( "PROPN" ) ) { return "R" ; } else if ( postag . equalsIgnoreCase ( "ADP" ) ) { return "P" ; } else if ( postag . equalsIgnoreCase ( "PRON" ) ) { return "Q" ; } else if ( postag . startsWith ( "V" ) ) { return "V" ; } else { return "O" ; } }
Mapping between Universal POS tags and NAF.

@param postag
the postag
@return the mapping to NAF pos tagset