(self)
| 86 | print "pattern.es.inflect.verbs.find_lemma()" |
| 87 | |
| 88 | def test_find_lexeme(self): |
| 89 | # Assert the accuracy of the verb conjugation algorithm. |
| 90 | i, n = 0, 0 |
| 91 | for v, lexeme1 in es.inflect.verbs.infinitives.items(): |
| 92 | lexeme2 = es.inflect.verbs.find_lexeme(v) |
| 93 | for j in range(len(lexeme2)): |
| 94 | if lexeme1[j] == lexeme2[j]: |
| 95 | i += 1 |
| 96 | n += 1 |
| 97 | self.assertTrue(float(i) / n > 0.85) |
| 98 | print "pattern.es.inflect.verbs.find_lexeme()" |
| 99 | |
| 100 | def test_conjugate(self): |
| 101 | # Assert different tenses with different conjugations. |
nothing calls this directly
no test coverage detected