def information(self, words): """Return unglossed information for a list of Arabic words (used when analyse() turned up empty)""" solutions = list() for word in words: solutions.append({'word': word, 'vowelled': "", 'transliteration': transliterate.b2ala(transliterate.u2b(word)), 'pos': "", 'root': "", 'gloss': "Not found in dictionary"}) return solutions
def information(self, words): """Return unglossed information for a list of Arabic words (used when analyse() turned up empty)""" solutions = list() for word in words: solutions.append({ 'word': word, 'vowelled': "", 'transliteration': transliterate.b2ala(transliterate.u2b(word)), 'pos': "", 'root': "", 'gloss': "Not found in dictionary" }) return solutions
def analyse_arabic(self, word): """Find possible solutions for the given UTF8 Arabic word""" buck_word = transliterate.u2b(word) return self.analyse(buck_word)