MCPcopy Create free account
hub / github.com/clips/pattern / test_lexeme

Method test_lexeme

test/test_en.py:166–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

164 print "pattern.en.inflect.lemma()"
165
166 def test_lexeme(self):
167 # Assert all inflections of "be".
168 v = en.inflect.lexeme("be")
169 self.assertEqual(v, [
170 "be", "am", "are", "is", "being",
171 "was", "were", "been",
172 "am not", "aren't", "isn't", "wasn't", "weren't"
173 ])
174 v = en.inflect.lexeme("imaginerify")
175 self.assertEqual(v, [
176 "imaginerify", "imaginerifies", "imaginerifying", "imaginerified"
177 ])
178 print "pattern.en.inflect.lexeme()"
179
180 def test_tenses(self):
181 # Assert tense recognition.

Callers

nothing calls this directly

Calls 1

lexemeMethod · 0.80

Tested by

no test coverage detected