Anagrams Install gem 'gem install anagrams' or add it in your gemfile 'gem anagrams' Anagrams.new('dictionary.txt').find_words(seed_word)