public static boolean sameSentence(Integer word1, Integer word2, String line) {
        String[] words = splitAndMaskWordsAroundNotLeavePunctuation(line);
        Integer start = word1 < word2 ? word1: word2;
        Integer end = word1 < word2 ? word2: word1;
        for (int i=start; i < end; i++) {
            if (words[i].contains(".") || 
                    words[i].contains("?") || 
                    words[i].contains("!") || 
                    words[i].contains(",") ||
                    words[i].contains(";") ||
                    words[i].contains(":"))
                return false;
        }
        return true;
    }