code: def rules(self, word):
          
          return self._rules.apply(word) if self._rules else word
docs: Function to tokenize input string and return output of str with ortho rules
          applied.
  
          Parameters
          ----------
          word : str
              The input string to be tokenized.
  
          Returns
          -------
          result : str
              Result of the orthography rules applied to the input str.