public static POS convertPOS(String pos){
  if (pos.startsWith("NN"))   return POS.NOUN;
 else   if (pos.startsWith(("VB")))   return POS.VERB;
 else   if (pos.startsWith(("JJ")))   return POS.ADJECTIVE;
 else   if (pos.startsWith(("RB")))   return POS.ADVERB;
  return null;
}

public static POS convertPOS ( String pos ) { if ( pos . startsWith ( "NN" ) ) return POS . NOUN ; else if ( pos . startsWith ( ( "VB" ) ) ) return POS . VERB ; else if ( pos . startsWith ( ( "JJ" ) ) ) return POS . ADJECTIVE ; else if ( pos . startsWith ( ( "RB" ) ) ) return POS . ADVERB ; return null ; }
convert pos tag to jwi pos instance
