@Test public void testEpithetStemming() throws Exception { assertEquals("", SciNameNormalizer.stemEpithet("")); assertEquals("alba", SciNameNormalizer.stemEpithet("alba")); assertEquals("alba", SciNameNormalizer.stemEpithet("albus")); assertEquals("alba", SciNameNormalizer.stemEpithet("albon")); assertEquals("alba", SciNameNormalizer.stemEpithet("album")); assertEquals("allba", SciNameNormalizer.stemEpithet("allbus")); assertEquals("alaba", SciNameNormalizer.stemEpithet("alaba")); assertEquals("alaa", SciNameNormalizer.stemEpithet("alaus")); assertEquals("alaa", SciNameNormalizer.stemEpithet("alaa")); }
public static String stemEpithet(String epithet) { if (!hasContent(epithet)) return ""; return suffix_a.matcher(epithet).replaceFirst("a"); }
SciNameNormalizer { public static String stemEpithet(String epithet) { if (!hasContent(epithet)) return ""; return suffix_a.matcher(epithet).replaceFirst("a"); } }
SciNameNormalizer { public static String stemEpithet(String epithet) { if (!hasContent(epithet)) return ""; return suffix_a.matcher(epithet).replaceFirst("a"); }  }
SciNameNormalizer { public static String stemEpithet(String epithet) { if (!hasContent(epithet)) return ""; return suffix_a.matcher(epithet).replaceFirst("a"); }  static boolean hasContent(String s); static String nullToEmpty(String s); static String normalize(String s); static String normalize(String s, boolean stemming); static String normalizeAll(String s); static String normalizeAll(String s, boolean stemming); static String stemEpithet(String epithet); }
SciNameNormalizer { public static String stemEpithet(String epithet) { if (!hasContent(epithet)) return ""; return suffix_a.matcher(epithet).replaceFirst("a"); }  static boolean hasContent(String s); static String nullToEmpty(String s); static String normalize(String s); static String normalize(String s, boolean stemming); static String normalizeAll(String s); static String normalizeAll(String s, boolean stemming); static String stemEpithet(String epithet);  }