We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f7165 commit 43d993dCopy full SHA for 43d993d
composer.json
@@ -5,7 +5,8 @@
5
"require": {
6
"php": "^7.0",
7
"rapidwebltd/rw-file-cache": "^1.2",
8
- "divineomega/is_offensive": "^1.0"
+ "divineomega/is_offensive": "^1.0",
9
+ "davechild/textstatistics": "^1.0"
10
},
11
"require-dev": {
12
"phpunit/phpunit": "^5.7",
src/Word.php
@@ -3,6 +3,7 @@
3
4
use rapidweb\RWFileCache\RWFileCache;
use Snipe\BanBuilder\CensorWords;
+use DaveChild\TextStatistics\Syllables;
class Word {
@@ -89,7 +90,7 @@ private function wordInfo()
89
90
91
public function syllables()
92
{
- return $this->wordInfo()->syllables;
93
+ return Syllables::syllableCount($this->word);
94
}
95
96
public function offensive()
0 commit comments