Created
February 1, 2017 02:04
-
-
Save gonzedge/9a3bee14cb2d2c74bbb27f0e102bec5a to your computer and use it in GitHub Desktop.
Scan test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rambling-trie' | |
trie = Rambling::Trie.create '/usr/share/dict/web2' | |
puts trie.scan 'beaut' # => | |
# beauteous | |
# beauteously | |
# beauteousness | |
# beauti | |
# beautician | |
# beautied | |
# beautification | |
# beautifier | |
# beautiful | |
# beautifully | |
# beautifulness | |
# beautify | |
# beautihood | |
# beauty | |
# beautydom | |
# beautyship |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with rambling-trie 1.0.0,