def __isAcceptable(self, word, remove_total):
        """Determine if the word is acceptable for stemming.
        """
        word_is_acceptable = False
        # If the word starts with a vowel, it must be at least 2
        # characters long to be stemmed
        if word[0] in "aeiouy":
            if (len(word) - remove_total >= 2):
                word_is_acceptable = True
        # If the word starts with a consonant, it must be at least 3
        # characters long (including one vowel) to be stemmed
        elif (len(word) - remove_total >= 3):
            if word[1] in "aeiouy":
                word_is_acceptable = True
            elif "aeiouy" in word[2]:
                word_is_acceptable = True
        return word_is_acceptable
dataset/ETHPy150Open nltk/nltk/nltk/stem/lancaster.py/LancasterStemmer.__isAcceptable/swapped operands of `in`