@Test public void testNormalize() throws Exception { assertEquals("", SciNameNormalizer.normalize("")); assertEquals("Abies", SciNameNormalizer.normalize("Abies ")); assertEquals("Abiies", SciNameNormalizer.normalize("Abiies ")); assertEquals("Abyes", SciNameNormalizer.normalize("Abyes ")); assertEquals("Abyes alba", SciNameNormalizer.normalize("Abyes albus")); assertEquals("Abyes albieta", SciNameNormalizer.normalize("Abyes albieta")); assertEquals("Abies albieta", SciNameNormalizer.normalize("Abies albijeta")); assertEquals("Abies albieta", SciNameNormalizer.normalize("Abies albyeta")); assertEquals("Abies alba", SciNameNormalizer.normalize(" \txAbies × ållbbus\t")); assertEquals("Abies alba", SciNameNormalizer.normalize(" \txAbies × ållbbus\t")); assertEquals("Rhachis taktos", SciNameNormalizer.normalize("Rhachis taktos")); assertEquals("Hieracium sabauda", SciNameNormalizer.normalize("Hieracium sabaudum")); assertEquals("Hieracium scorzoneraefolia", SciNameNormalizer.normalize("Hieracium scorzoneræfolium")); assertEquals("Hieracium scorzonerifolia", SciNameNormalizer.normalize("Hieracium scorzonerifolium")); assertEquals("Macrozamia platirachis", SciNameNormalizer.normalize("Macrozamia platyrachis")); assertEquals("Macrozamia platirachis", SciNameNormalizer.normalize("Macrozamia platyrhachis")); assertEquals("Cycas circinalis", SciNameNormalizer.normalize("Cycas circinalis")); assertEquals("Cycas circinalis", SciNameNormalizer.normalize("Cycas circinnalis")); assertEquals("Isolona perieri", SciNameNormalizer.normalize("Isolona perrieri")); assertEquals("Isolona perieri", SciNameNormalizer.normalize("Isolona perrierii")); assertEquals("Carex caioueti", SciNameNormalizer.normalize("Carex ×cayouettei")); assertEquals("Platanus hispanica", SciNameNormalizer.normalize("Platanus x hispanica")); assertEquals("Eragrostis browni", SciNameNormalizer.normalize("Eragrostis brownii")); assertEquals("Eragrostis browni", SciNameNormalizer.normalize("Eragrostis brownei")); }
public static String normalize(String s) { return normalize(s, false, true); }
SciNameNormalizer { public static String normalize(String s) { return normalize(s, false, true); } }
SciNameNormalizer { public static String normalize(String s) { return normalize(s, false, true); }  }
SciNameNormalizer { public static String normalize(String s) { return normalize(s, false, true); }  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 normalize(String s) { return normalize(s, false, true); }  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);  }