def tenses(self, verb, parse=True):
verb = verb.lower()<EOL>a = set()<EOL>b = self.lemma(verb, parse=parse)<EOL>v = []<EOL>if b in self:<EOL><INDENT>v = self[b]<EOL><DEDENT>elif parse is True: <EOL><INDENT>v = self.find_lexeme(b)<EOL><DEDENT>for i, tense in enumerate(v):<EOL><INDENT>if tense == verb:<EOL><INDENT>for id, index in self._format.items():<EOL><INDENT>if i == index:<EOL><INDENT>a.add(id)<EOL><DEDENT><DEDENT>for id1, id2 in self._default.items():<EOL><INDENT>if id2 in a:<EOL><INDENT>a.add(id1)<EOL><DEDENT><DEDENT>for id1, id2 in self._default.items():<EOL><INDENT>if id2 in a:<EOL><INDENT>a.add(id1)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>a = (TENSES[id][:-<NUM_LIT:2>] for id in a)<EOL>a = Tenses(sorted(a))<EOL>return a<EOL>
Returns a list of possible tenses for the given inflected verb.