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

Flesch-Kincaid score always return 0 #35

Closed mikaoelitiana closed 6 years ago

mikaoelitiana commented 7 years ago

I am trying to use the library but got some issue as the result is always 0 for Flesch-Kincaid:

$this->textStatistics = new DaveChild\TextStatistics\TextStatistics();
print $this->textStatistics->fleschKincaidReadingEase("Hello, my name is Mika"); // 0

If I enter the same text in the demo page, I get a different value.