@Test public void testIsWord() { String word = "BabamaKota"; String notWord1 = "Baba ma"; String notWord2 = "Baba123"; assertTrue(TextUtils.isWord(word)); assertFalse(TextUtils.isWord(notWord1)); assertFalse(TextUtils.isWord(notWord2)); }
public static boolean isWord(String text) { return !NOT_WORD_PATTERN.matcher(text).find(); }
TextUtils { public static boolean isWord(String text) { return !NOT_WORD_PATTERN.matcher(text).find(); } }
TextUtils { public static boolean isWord(String text) { return !NOT_WORD_PATTERN.matcher(text).find(); }  }
TextUtils { public static boolean isWord(String text) { return !NOT_WORD_PATTERN.matcher(text).find(); }  static boolean isNumberBetween(String s, int lower, int upper); static String removeOrphantSpaces(String text); static String cleanLigatures(String str); static List<String> tokenize(String text); static int tokLen(String text); static String joinStrings(List<String> strings); static String joinStrings(List<String> strings, char delim); static String joinStrings(String[] strings); static List<String> produceDates(List<String> date); static String getTrueVizPath(String pdfPath); static String getNLMPath(String pdfPath); static boolean isWord(String text); static boolean isNumber(String text); static boolean isOnlyFirstUpperCase(String text); static boolean isAllUpperCase(String text); static boolean isAllLowerCase(String text); static boolean isSeparator(String text); static boolean isNonAlphanumSep(String text); }
TextUtils { public static boolean isWord(String text) { return !NOT_WORD_PATTERN.matcher(text).find(); }  static boolean isNumberBetween(String s, int lower, int upper); static String removeOrphantSpaces(String text); static String cleanLigatures(String str); static List<String> tokenize(String text); static int tokLen(String text); static String joinStrings(List<String> strings); static String joinStrings(List<String> strings, char delim); static String joinStrings(String[] strings); static List<String> produceDates(List<String> date); static String getTrueVizPath(String pdfPath); static String getNLMPath(String pdfPath); static boolean isWord(String text); static boolean isNumber(String text); static boolean isOnlyFirstUpperCase(String text); static boolean isAllUpperCase(String text); static boolean isAllLowerCase(String text); static boolean isSeparator(String text); static boolean isNonAlphanumSep(String text);  }