Example #1
0
 def test_can_get_one_noun_from_noun_phrase(self):
     nouns = extract_nouns("the car")
     self.assertEqual(len(nouns), 1)
     self.assertEqual(nouns[0], "car")
Example #2
0
 def test_can_get_one_noun_from_one_word(self):
     nouns = extract_nouns("car")
     self.assertEqual(len(nouns), 1)
     self.assertEqual(nouns[0], "car")