def __applyRule(self, word, remove_total, append_string):
        """Apply the stemming rule to the word
        """
        # Remove letters from the end of the word
        new_word_length = remove_total - len(word)
        word = word[0:new_word_length]

        # And add new letters to the end of the truncated word
        if append_string:
            word += append_string
        return word
dataset/ETHPy150Open nltk/nltk/nltk/stem/lancaster.py/LancasterStemmer.__applyRule/swapped operands of `-`