public static String[] textToWords(String text) {
        // TODO: strip word-final or -initial apostrophes as in James' or 'cause.
        // Currently assuming hyphenated expressions split into two Asr words.
        return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+");
    }
public static String[] textToWords(String text) {
       
       
        return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+");
    }
public static string[] texttowords(string text) { return text.replace('-', ' ').replaceall("['.!?,:;\"\\(\\)]", " ").touppercase(locale.us).trim().split("\\s+"); }