def next(self, type=None):
i = self.index + <NUM_LIT:1><EOL>s = self.sentence<EOL>while i < len(s):<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 word in the sentence with the given type.