def stem(self, word):
terminate = False<EOL>intact = True<EOL>while not terminate:<EOL><INDENT>for n in range(<NUM_LIT:6>, <NUM_LIT:0>, -<NUM_LIT:1>):<EOL><INDENT>if word[-n:] in self._rule_table[n]:<EOL><INDENT>accept = False<EOL>if len(self._rule_table[n][word[-n:]]) < <NUM_LIT:4>:<EOL><INDENT>for rule in self._rule_table[n][word[-n:]]:<EOL><INDENT>(<EOL>word,<EOL>accept,<EOL>intact,<EOL>terminate,<EOL>) = self._apply_rule(word, rule, intact, terminate)<EOL>if accept:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>rule = self._rule_table[n][word[-n:]]<EOL>(word, accept, intact, terminate) = self._apply_rule(<EOL>word, rule, intact, terminate<EOL>)<EOL><DEDENT>if accept:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return word<EOL>
Return Paice-Husk stem.

        Parameters
        ----------
        word : str
            The word to stem

        Returns
        -------
        str
            Word stem

        Examples
        --------
        >>> stmr = PaiceHusk()
        >>> stmr.stem('assumption')
        'assum'
        >>> stmr.stem('verifiable')
        'ver'
        >>> stmr.stem('fancies')
        'fant'
        >>> stmr.stem('fanciful')
        'fancy'
        >>> stmr.stem('torment')
        'tor'