示例#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')
示例#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')
示例#3
0
def test_word():
    w = Words('american-english')
    for gram in w.anagram("topgears"):
        print gram
示例#4
0
def test_word():
    w = Words('american-english')
    for gram in w.anagram("topgears"):
        print gram