Last active
February 16, 2016 21:35
-
-
Save albert-decatur/a3822cc47ba2370dd0a9 to your computer and use it in GitHub Desktop.
get syllable counts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// use TextStatistics to get syllable counts from STDIN | |
// https://github.com/DaveChild/Text-Statistics | |
foreach (glob("DaveChild/TextStatistics/*.php") as $filename) | |
{ | |
include $filename; | |
} | |
$file = file_get_contents("php://stdin"); | |
echo DaveChild\TextStatistics\Syllables::syllableCount($file); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment