def test_reduce_tashkeel(self): """Test reduce_tashkeel function ?""" word1 = u"يُتَسََلَّمْنَ" word2 = u"يُتسلّمن" self.assertEqual(ar.reduce_tashkeel(word1), word2, msg=u"%s :" % ar.reduce_tashkeel(word1))
def reduced_tashkeel_text(text): """ Reduce Harakat and vocalization from a vocalized text. @param text: a given vocalized text. @type text: unicode. @return : reduced text vocalization @rtype: unicode """ return araby.reduce_tashkeel(text)
def reduced_tashkeel_text(text): """ Reduce Harakat and vocalization from a vocalized text. @param text: a given vocalized text. @type text: unicode. @return : reduced text vocalization @rtype: unicode """ return araby.reduce_tashkeel(text)
def test_reduce_tashkeel(self): """Test reduce_tashkeel function ?""" word1 = u"يُتَسََلَّمْنَ" word2 = u"يُتسلّمن" self.assertEqual(ar.reduce_tashkeel(word1), word2, msg=u"%s :"%ar.reduce_tashkeel(word1))
def test_reduce_tashkeel(self): # reduce_tashkeel(text) word = u"يُتَسََلَّمْنَ" assert Araby.reduce_tashkeel(word) == u'يُتسلّمن'