A simple webpage that uses RhymeBrain API to highlight rhyming words in submitted text
The purpose of this project was to simply have fun coding something that involved a web API in Javascript. I certainly accomplished that in doing this. Further, I heavily commented the code in hopes that others may be able to learn something from it. Keep in mind that this is far from perfect in terms of efficiency, style, or otherwise. S
- Download or clone the entire repository
- Open index.html in your favorite modern browser
- Put some text in the box
- Click "submit"
- Wait for output
So uh... what do all these colors mean? The script outputs the text that is inputted, but highlights groups of rhyming words. Rhyming words will be highlighted with the same color. Disclaimer: Some colors may look similar even if words do not rhyme.
Improve the script to ignore capitalization and apostrophes instead of removing them entirely.
If my schedule permits, I may turn this into a small library based on the RhymeBrain API which extends String. The library would likely include functions such as:
String.prototype.rhymesWith(string)
(returns Boolean)String.prototype.rhymeGroups()
(returns 2D Array)- etc.
- [RhymeBrain API] (http://rhymebrain.com/api.html)
- [p5.js] (https://p5js.org)
This project is licensed under the MIT License - see the LICENSE.md file for details