TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Counting Syllables and Detecting Rhyme in PHP (2012)

11 pointsby orangeduckalmost 11 years ago

2 comments

languagehackeralmost 11 years ago
A whole grip of work was needlessly done here because the author wasn&#x27;t aware of the Soundex, which PHP even has a native string function for: <a href="http://www.php.net/manual/en/function.soundex.php" rel="nofollow">http:&#x2F;&#x2F;www.php.net&#x2F;manual&#x2F;en&#x2F;function.soundex.php</a><p>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.
overload119almost 11 years ago
If anyone is interested in detecting rhymes in lyrics, I built a lyric visualizer + analyzer a while ago.<p><a href="http://www.rappad.co/blueprints/1064" rel="nofollow">http:&#x2F;&#x2F;www.rappad.co&#x2F;blueprints&#x2F;1064</a><p>It goes a couple steps further to try to use the information to determine a &quot;lyrical grade&quot; of how poetic the song is.