private static String mapFrenchTagSetToKaf(final String postag) {
    if (postag.startsWith("ADV")) {
      return "A"; // adverb
    } else if (postag.equalsIgnoreCase("CC") || postag.equalsIgnoreCase("CS")) {
      return "C"; // conjunction
    } else if (postag.startsWith("D") || postag.startsWith("I")) {
      return "D"; // det predeterminer
    } else if (postag.startsWith("ADJ")) {
      return "G"; // adjective
    } else if (postag.startsWith("NC")) {
      return "N"; // common noun
    } else if (postag.startsWith("NPP")) {
      return "R"; // proper noun
    } else if (postag.startsWith("PRO") || postag.startsWith("CL")) {
      return "Q"; // pronoun
    } else if (postag.equalsIgnoreCase("P") || postag.equalsIgnoreCase("P+D")
        || postag.equalsIgnoreCase("P+PRO")) {
      return "P"; // preposition
    } else if (postag.startsWith("V")) {
      return "V"; // verb
    } else {
      return "O"; // other
    }
  }
private static String mapFrenchTagSetToKaf ( final String postag ) { if ( postag . startsWith ( "ADV" ) ) { return "A" ; } else if ( postag . equalsIgnoreCase ( "CC" ) || postag . equalsIgnoreCase ( "CS" ) ) { return "C" ; } else if ( postag . startsWith ( "D" ) || postag . startsWith ( "I" ) ) { return "D" ; } else if ( postag . startsWith ( "ADJ" ) ) { return "G" ; } else if ( postag . startsWith ( "NC" ) ) { return "N" ; } else if ( postag . startsWith ( "NPP" ) ) { return "R" ; } else if ( postag . startsWith ( "PRO" ) || postag . startsWith ( "CL" ) ) { return "Q" ; } else if ( postag . equalsIgnoreCase ( "P" ) || postag . equalsIgnoreCase ( "P+D" ) || postag . equalsIgnoreCase ( "P+PRO" ) ) { return "P" ; } else if ( postag . startsWith ( "V" ) ) { return "V" ; } else { return "O" ; } }
Mapping between CC tagset and NAF.

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