Edit report at http://pear.php.net/bugs/bug.php?id=18003&edit=1
ID: 18003
Updated by: [email protected]
Reported By: myqlarson at gmail dot com
Summary: doubleSyllables not catching all possibilites
-Status: Feedback
+Status: Open
Type: Bug
Package: Text_Statistics
Operating System: ubuntu
Package Version: 1.0.1
PHP Version: 5.3.3
Roadmap Versions:
New Comment:
-Status: Feedback
+Status: Open
Previous Comments:
------------------------------------------------------------------------
[2011-07-22 05:23:09] myq
castle.
castle is two syllables, but is counted as one with the current code.
you need to add '/tl$/' to the doubleSyllables array
mr and mrs are also two syllables which are not caught.
------------------------------------------------------------------------
[2011-07-10 06:56:34] doconnor
-Status: Open
+Status: Feedback
------------------------------------------------------------------------
[2011-07-10 06:56:25] doconnor
Hi myq; can I get you to add a reproduceable test script? It's not clear
to me what
input would be missed
------------------------------------------------------------------------
[2010-10-28 06:54:24] myq
Description:
------------
Need to add a few more exceptions to doubleSyllables to catch
everything
Test script:
---------------
var $doubleSyllables = array('/\wlien/', // alien but not lien
'/bl$/', // syllable
'/tl$/', // castle [**add]
'/io/', // biography
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18003&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.