DaveChild / Text-Statistics

Generate information about text including syllable counts and Flesch-Kincaid, Gunning-Fog, Coleman-Liau, SMOG and Automated Readability scores.
https://readable.com/
BSD 2-Clause "Simplified" License
446 stars 107 forks source link

Undefined offset warning in "words_with_three_syllables" #25

Closed cgutteridge closed 10 years ago

cgutteridge commented 10 years ago

I sometimes get the above warning at:

Line 499: if ($this->syllable_count($arrWords[$i]) > 2) {

cgutteridge commented 10 years ago

and also in average_syllables_per_word: Line 481: $intSyllableCount += $this->syllable_count($arrWords[$i]);

DaveChild commented 10 years ago

I believe this is now fixed.