def previous(self, type=None):
i = self.index - <NUM_LIT:1><EOL>s = self.sentence<EOL>while i > <NUM_LIT:0>:<EOL><INDENT>if type in (s[i].type, None):<EOL><INDENT>return s[i]<EOL><DEDENT>i -= <NUM_LIT:1><EOL><DEDENT>
Returns the next previous word in the sentence with the given type.