'Provides the texts, ordered by relevance.
:return: a generator with the texts'

def get_texts(self):

    info = sorted(self.history.items(), key=operator.itemgetter(1), reverse=True)
    return [k for (k, v) in info]
