'Stemming a word token using the ISRI stemmer.'

def stem(self, token):

    token = self.norm(token, 1)
    if (token in self.stop_words):
        return token
    token = self.pre32(token)
    token = self.suf32(token)
    token = self.waw(token)
    token = self.norm(token, 2)
    if (len(token) == 4):
        token = self.pro_w4(token)
    elif (len(token) == 5):
        token = self.pro_w53(token)
        token = self.end_w5(token)
    elif (len(token) == 6):
        token = self.pro_w6(token)
        token = self.end_w6(token)
    elif (len(token) == 7):
        token = self.suf1(token)
        if (len(token) == 7):
            token = self.pre1(token)
        if (len(token) == 6):
            token = self.pro_w6(token)
            token = self.end_w6(token)
    return token
