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

Method __contains__

pattern/text/__init__.py:1466–1468  ·  view source on GitHub ↗
(self, tense)

Source from the content-addressed store, hash-verified

1464class Tenses(list):
1465
1466 def __contains__(self, tense):
1467 # t in tenses(verb) also works when t is an alias (e.g. "1sg").
1468 return list.__contains__(self, TENSES[tense_id(tense)][:-2])
1469
1470### SENTIMENT POLARITY LEXICON #####################################################################
1471# A sentiment lexicon can be used to discern objective facts from subjective opinions in text.

Callers

nothing calls this directly

Calls 1

tense_idFunction · 0.85

Tested by

no test coverage detected