Simple, and formely abandoned tool useful for getting any kind of results in google autosuggester. It may be gist but for sake of laziness I'd created repo.
Algorithm is pretty simple, and uses simple DFS and 'transitive closure' combination. In order to simplify strings storing, also TRIE implementation is used.
Project is not going to be longer maintained.