andrewmh20 / getarhyme

Website to get a rhyme for a given word.
1 stars 1 forks source link

Handle uppercase first letter #5

Closed andrewmh20 closed 4 years ago

andrewmh20 commented 4 years ago

When a word (e.g. Orange) is entered with an uppercase first letter, the rhyme returned is the same word. This appears to only happen when there are no rhymes found for that word (except for the changed case same word).

We can naively address this by changing all input to lowercase before passing off to the API.

andrewmh20 commented 4 years ago

Also happens when rhymes do exists. I do think desired behavior should be to filter out the duplicate word: Either as described above, or handle it in the filtering after a response arrives.