Closed AndrewTemnokhud closed 8 years ago
$score =Maths::bcCalc( Maths::bcCalc( 1.043, '', Maths::bcCalc( Maths::bcCalc( Syllables::wordsWithThreeSyllables($strText, true, $this->strEncoding), '', Maths::bcCalc( 30, '/', Text::sentenceCount($strText, $this->strEncoding) ) ), 'sqrt', 0 ) ), '+', 3.129 );
That looks spot on to me. What do you think is incorrect?
Your code (see 3.1291):
$score = Maths::bcCalc(
1.043,
'*',
Maths::bcCalc(
Maths::bcCalc(
Maths::bcCalc(
Syllables::wordsWithThreeSyllables($strText, true, $this->strEncoding),
'*',
Maths::bcCalc(
30,
'/',
Text::sentenceCount($strText, $this->strEncoding)
)
),
'+',
3.1291
),
'sqrt',
0
)
);
Hellow. Incorrectly considered SMOG. Сheck formula whith https://en.wikipedia.org/wiki/SMOG.