<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 14:51:04 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Cameron McKay: Counting Syllables and Detecting Rhyme in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18366</guid>
      <link>http://www.phpdeveloper.org/news/18366</link>
      <description><![CDATA[<p>
In <a href="http://cdmckay.org/blog/2012/08/15/counting-syllables-and-detecting-rhyme-in-php/">this new post</a> to his site, <i>Cameron McKay</i> has posted a bit of interesting code - functionality that detects the number of syllables in words and checks for rhyming in phrases.
</p>
<blockquote>
The simplicity of the rules got me thinking: how hard would it be to write a program to check if a poem stanza is <a href="http://en.wikipedia.org/wiki/Ottava_rima">ottava rima</a>? In this article, we will write a simple ottava rima detector in PHP.
</blockquote>
<p>
<a href="https://github.com/cdmckay/is_ottava_rima">His code</a> takes in the content and performs a few checks, one simple (length) and two custom - "is_iambic_pentameter" and "is_abababcc_rhyme". The code for these two checks are included in the post as well that, in turn, use some other functions to count syllables and vowels and use  Arpabet phonetic transcription and monophthongs/diphthongs to detect iambic pentameter and rhyme.
</p>]]></description>
      <pubDate>Thu, 16 Aug 2012 10:18:57 -0500</pubDate>
    </item>
  </channel>
</rss>
