Converts 10 digit phone number to all possible words or combination of words from the provided dictionary.
Example:
PhoneConverter.convert(6686787825)
#=> [["noun", "struck"], ["onto", "struck"], ["motor", "usual"], ["nouns", "truck"], ["nouns", "usual"], "motortruck"]
How to run:
irb -r ./lib/phone_converter.rb
PhoneConverter.convert(6686787825)
Run tests:
bundle exec rspec spec