Word Analyzing Webpage
As the first independent project at Epicodus as a Ruby student, this project was to create a website where a user could enter two words. The site would process the user input through defined methods to return if the words are anagrams (words containing the same letters), antigrams (words that do not contain like letters), or a palindrome (words that are spelt the same way forwards and backwards).
Behavior | Input | Output |
---|---|---|
The program will check if two words are anagrams | 'ruby' 'bury' | 'These words are anagrams' |
The program will check for anagrams regardless of case | 'Eat' 'TEa' | 'These words are anagrams' |
The program will check if a word is a palindrome | 'now' 'won' | 'These words are palindromes.' |
The program will not allow words outside of the english language. (words not containing vowels.) | 'nm' 'th' | |
The program will check if the words are antigrams | 'hi' 'bye' | 'These words are antigrams' |
The program will account for multiple words without taking in punctuations | 'Hello!' 'gooBye.' | 'hello' 'goodbye' |
- Copy the URL to this repository
- Open terminal and navigate to the desktop
- Clone this repository using command: git clone "insert-url-here"
- Open code in text editor of choice
The only aspect that I would like to revisit would be in the event for when the user enters words that are palindromes. Ex: 'now' and 'won'. In the applications current state, it will return the last true statement: 'These words are palindromes.' However, I would like it to be able to say both 'These words are anagrams.' and 'These words are palindromes.'
For support, questions, comments or ideas contact Sara: [email protected]
HTML, Bootstrap, Ruby, Sinatra, Capybara Integration Testing, rspec Gem, BDD
Open source.
Copyright (c) 2017 Sara Schultz