Counting Syllables and Detecting Rhyme in PHP (2012)(cdmckay.org) |
Counting Syllables and Detecting Rhyme in PHP (2012)(cdmckay.org) |
Interesting to see the way the author attacks a problem entirely out of his element, but as with anything, a little research ahead of time goes a long way.
http://www.rappad.co/blueprints/1064
It goes a couple steps further to try to use the information to determine a "lyrical grade" of how poetic the song is.