Esempio n. 1
0
    def decode(self, stream):
        if stream.type_ != 'string':
            return

        w = Words('american-english')
        chars = "".join(stream)
        for word in w.anagram(chars, depth=1):
            yield Result(chars, " ".join(word), 'Anagramed')
Esempio n. 2
0
    def decode(self, stream):
        if stream.type_ != 'string':
            return

        w = Words('american-english')
        chars = "".join(stream)
        for word in w.anagram(chars, depth=1):
            yield Result(chars, " ".join(word), 'Anagramed')
Esempio n. 3
0
def test_word():
    w = Words('american-english')
    for gram in w.anagram("topgears"):
        print gram
Esempio n. 4
0
def test_word():
    w = Words('american-english')
    for gram in w.anagram("topgears"):
        print gram