MCPcopy Index your code
hub / github.com/clips/pattern / TENSES

Method TENSES

pattern/text/__init__.py:1362–1370  ·  view source on GitHub ↗

Yields a list of tenses for this language, excluding negations. Each tense is a (tense, person, number, mood, aspect)-tuple.

(self)

Source from the content-addressed store, hash-verified

1360
1361 @property
1362 def TENSES(self):
1363 """ Yields a list of tenses for this language, excluding negations.
1364 Each tense is a (tense, person, number, mood, aspect)-tuple.
1365 """
1366 a = set(TENSES[id] for id in self._format)
1367 a = a.union(set(TENSES[id] for id in self._default.keys()))
1368 a = a.union(set(TENSES[id] for id in self._default.values()))
1369 a = sorted(x[:-2] for x in a if x[-2] is False) # Exclude negation.
1370 return a
1371
1372 def lemma(self, verb, parse=True):
1373 """ Returns the infinitive form of the given verb, or None.

Callers

nothing calls this directly

Calls 2

keysMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected