FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18003&edit=1

ID: 18003
Updated by: daniel.oconnor@gmail.com
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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 25, '11 at 4:28a
activeAug 25, '11 at 4:28a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase