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

Grade Levels capped at 12 #42

Closed mryand closed 6 years ago

mryand commented 6 years ago

Most reading level scoring tools I have worked with (Hemingway, etc.) do not cap the grade level, but this tool seems to have a hard-coded cap of 12.

I work at a higher education institution where much text is drafted at a Flesch-Kincaid 14-18 level and where we are happy if we can work with the author to bring it down to 12. In its current form this tool does not distinguish between these levels.

Ideally there would be a way to specify a max grade level rather than having 12 be hardcoded, e.g.:

$textStatistics = new DaveChild\TextStatistics\TextStatistics;
$textStatistics->setMaxGradeLevel(18);
$grade_level = $textStatistics->fleschKincaidGradeLevel( $string );