def test_attributive(self): # Assert "groß" => "großer" (masculine, nominative), and others. for lemma, inflected, gender, role, article in ( (u"groß", u"großer", de.MALE, de.SUBJECT, None), (u"groß", u"großen", de.MALE, de.OBJECT, None), (u"groß", u"großem", de.MALE, de.INDIRECT, None), (u"groß", u"großen", de.MALE, de.PROPERTY, None), (u"groß", u"große", de.FEMALE, de.SUBJECT, None), (u"groß", u"große", de.FEMALE, de.OBJECT, None), (u"groß", u"großer", de.FEMALE, de.INDIRECT, None), (u"groß", u"großes", de.NEUTRAL, de.SUBJECT, None), (u"groß", u"großes", de.NEUTRAL, de.OBJECT, None), (u"groß", u"großen", de.MALE, de.PROPERTY, "mein"), (u"groß", u"großen", de.FEMALE, de.PROPERTY, "jeder"), (u"groß", u"großen", de.FEMALE, de.PROPERTY, "mein"), (u"groß", u"großen", de.PLURAL, de.INDIRECT, "jede"), (u"groß", u"großen", de.PLURAL, de.PROPERTY, "jeder")): v = de.attributive(lemma, gender, role, article) self.assertEqual(v, inflected) print("pattern.de.attributive()")
def test_attributive(self): # Assert "groß" => "großer" (masculine, nominative), and others. for lemma, inflected, gender, role, article in ( (u"groß", u"großer", de.MALE, de.SUBJECT, None), (u"groß", u"großen", de.MALE, de.OBJECT, None), (u"groß", u"großem", de.MALE, de.INDIRECT, None), (u"groß", u"großen", de.MALE, de.PROPERTY, None), (u"groß", u"große", de.FEMALE, de.SUBJECT, None), (u"groß", u"große", de.FEMALE, de.OBJECT, None), (u"groß", u"großer", de.FEMALE, de.INDIRECT, None), (u"groß", u"großes", de.NEUTRAL, de.SUBJECT, None), (u"groß", u"großes", de.NEUTRAL, de.OBJECT, None), (u"groß", u"großen", de.MALE, de.PROPERTY, "mein"), (u"groß", u"großen", de.FEMALE, de.PROPERTY, "jeder"), (u"groß", u"großen", de.FEMALE, de.PROPERTY, "mein"), (u"groß", u"großen", de.PLURAL, de.INDIRECT, "jede"), (u"groß", u"großen", de.PLURAL, de.PROPERTY, "jeder")): v = de.attributive(lemma, gender, role, article) self.assertEqual(v, inflected) print "pattern.de.attributive()"