/phone-number-to-words-converter

The project is a Ruby script which takes an input of a 10 digit phone number and converts into meaningful words by performing keypad's letter combinations against a dictionary file

Primary LanguageRubyMIT LicenseMIT

Phone Number To Words Converter

The project is a Ruby script which takes an input of a 10 digit phone number and converts into meaningful words by performing keypad's letter combinations against a dictionary file

Contents

  • Assumptions
  • Installation
  • Execution
  • Output Screens

Assumptions

  • Number should be 10 digits
  • Number should not contain 0 & 1 digits
  • The matching word's length is atleast 3 characters
  • This application is using a standard keypad

Installation

Execution

  • Run the program: ruby lib/converter.rb
  • Run the tests: rspec spec --format documentation

Output screen

Program Output

Test Output