public ArrayList<String> splitInput(String input) {
        boolean quote = false;
        int index = 0;
        ArrayList<String> sentences = new ArrayList<>();

        for (int i = 0; i < input.length(); i++) {
            if (input.substring(i, i + 1).equals("\"")) {
                quote = !quote;
            }
            if ((input.substring(i, i + 1).matches("[.!?]") || (i == input.length() - 1))) {

                if (!quote && !(input.substring(i - 2, i).matches("Mr|Ms|Dr|St|Jr|Sr|co")) && !(input.substring(i - 3, i).matches("Mrs|etc|Gen|inc"))) {
                    sentences.add(input.substring(index, i + 1));
                    index = i + 2;

                }

            }
        }

        return sentences;
    }