public function fleschKincaidReadingEase($strText = false)
    {
        $strText = $this->setText($strText);

        $score = Maths::bcCalc(
            Maths::bcCalc(
                206.835,
                '-',
                Maths::bcCalc(
                    1.015,
                    '*',
                    Text::averageWordsPerSentence($strText, $this->strEncoding)
                )
            ),
            '-',
            Maths::bcCalc(
                84.6,
                '*',
                Syllables::averageSyllablesPerWord($strText, $this->strEncoding)
            )
        );

        if ($this->normalise) {
            return Maths::normaliseScore($score, 0, 100, $this->dps);
        } else {
            return Maths::bcCalc($score, '+', 0, true, $this->dps);
        }
    }
public function fleschKincaidReadingEase($strText = false)
    {
        $strText = $this->setText($strText);

        $score = Maths::bcCalc(
            Maths::bcCalc(
                206.835,
                '-',
                Maths::bcCalc(
                    1.015,
                    '*',
                    Text::averageWordsPerSentence($strText, $this->strEncoding)
                )
            ),
            '-',
            Maths::bcCalc(
                84.6,
                '*',
                Syllables::averageSyllablesPerWord($strText, $this->strEncoding)
            )
        );

        if ($this->normalise) {
            return Maths::normaliseScore($score, 0, 100, $this->dps);
        } else {
            return Maths::bcCalc($score, '+', 0, true, $this->dps);
        }
    }
public function fleschKincaidReadingEase ( $ strText = false ) { $ strText = $ this -> setText ( $ strText ) ; $ score = Maths :: bcCalc ( Maths :: bcCalc ( 206.835 , '-' , Maths :: bcCalc ( 1.015 , '*' , Text :: averageWordsPerSentence ( $ strText , $ this -> strEncoding ) ) ) , '-' , Maths :: bcCalc ( 84.6 , '*' , Syllables :: averageSyllablesPerWord ( $ strText , $ this -> strEncoding ) ) ) ; if ( $ this -> normalise ) { return Maths :: normaliseScore ( $ score , 0 , 100 , $ this -> dps ) ; } else { return Maths :: bcCalc ( $ score , '+' , 0 , true , $ this -> dps ) ; } }
Gives the Flesch-Kincaid Reading Ease of text entered rounded to one digit
@param   boolean|string  $strText         Text to be checked
@return  int|float
Gives the Flesch - Kincaid Reading Ease of text entered rounded to one digit