name-parser-api/src/main/java/org/gbif/nameparser/util/RankUtils.java
/**
   * Tries its best to infer a rank from a given rank marker such as subsp.
   *
   * @return the inferred rank or null
   */
Tries its best to infer a rank from a given rank marker such as subsp.
@return the inferred rank or null
Tries its best to infer a rank from a given rank marker such as subsp . @return the inferred rank or null
public static Rank inferRank(String rankMarker) {
    if (rankMarker != null) {
      return RANK_MARKER_MAP.get(NORMALIZE_RANK_MARKER.matcher(rankMarker.toLowerCase()).replaceAll(""));
    }
    return null;
  }
public static Rank inferRank ( String rankMarker ) { if ( rankMarker != null ) { return RANK_MARKER_MAP . get ( NORMALIZE_RANK_MARKER . matcher ( rankMarker . toLowerCase ( ) ) . replaceAll ( "" ) ) ; } return null ; }
Tries its best to infer a rank from a given rank marker such as subsp.
Tries its best to infer a rank from a given rank marker such as subsp .