PHP Class TextStatisticsMelvilleMobyDick

Inheritance: extends PHPUnit_Framework_TestCase
Exibir arquivo Open project: nystudio107/seomatic

Protected Properties

Property Type Description
$TextStatistics Data -------------------------------------------------------- Letter Count: 884 Word Count: 201 3+ syllables: 23 Syllable Count: 304 Sentence Count: 8 Note: 1 of the 3+ syllable words is a proper noun and will be ignored by the Gunning-Fog Score. Manually Calculated Scores -------------------------------------------------------- Flesch-Kincaid Reading Ease (206.835 - (1.015 * (word_count / sentence_count)) - (84.6 * (syllableCount / word_count))) = 53.380886194029850746268656716418 Flesch-Kincaid Grade Level ((0.39 * (word_count / sentence_count)) + (11.8 * (syllableCount / word_count)) - 15.59) = 12.055516169154228855721393034826 Gunning-Fog Score (((word_count / sentence_count) + (100 * (long_word_count / word_count ))) * 0.4) = 14.428109452736318407960199004975 Coleman-Liau Index ((5.89 * (letter_count / word_count)) - (0.3 * (sentence_count / word_count)) - 15.8) = 10.092338308457711442786069651741 SMOG Index (1.043 * sqrt((long_word_count * (30 / sentence_count)) + 3.1291)) = 9.8605762790974848783982768629462 Automated Readability Index ((4.71 * (letter_count / word_count)) + (0.5 * (word_count / sentence_count)) - 21.43) = 11.847126865671641791044776119403
$strText

Public Methods

Method Description
setUp ( )
tearDown ( )
testAutomatedReadabilityIndex ( ) * Test Automated Readability Index --------------------
testColemanLiauIndex ( ) * Test Coleman Liau Index --------------------
testFleschKincaidGradeLevel ( ) * Test Flesch Kincaid Grade Level --------------------
testFleschKincaidReadingEase ( ) * Test Flesch Kincaid Reading Ease --------------------
testGunningFogScore ( ) * Test Gunning Fog Score --------------------
testLongWordCount ( ) * Test Long Word Count --------------------
testMobyDickSyllables ( ) * Test Syllables --------------------
testSMOGIndex ( ) * Test SMOG Index --------------------
testSentenceCount ( ) * Test Sentences --------------------
testTextLengthCheck ( ) * Test Letter Count --------------------
testWordCount ( ) * Test Word Count --------------------

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAutomatedReadabilityIndex() public method

* Test Automated Readability Index --------------------

testColemanLiauIndex() public method

* Test Coleman Liau Index --------------------

testFleschKincaidGradeLevel() public method

* Test Flesch Kincaid Grade Level --------------------

testFleschKincaidReadingEase() public method

* Test Flesch Kincaid Reading Ease --------------------

testGunningFogScore() public method

* Test Gunning Fog Score --------------------
public testGunningFogScore ( )

testLongWordCount() public method

* Test Long Word Count --------------------
public testLongWordCount ( )

testMobyDickSyllables() public method

* Test Syllables --------------------

testSMOGIndex() public method

* Test SMOG Index --------------------
public testSMOGIndex ( )

testSentenceCount() public method

* Test Sentences --------------------
public testSentenceCount ( )

testTextLengthCheck() public method

* Test Letter Count --------------------
public testTextLengthCheck ( )

testWordCount() public method

* Test Word Count --------------------
public testWordCount ( )

Property Details

$TextStatistics protected_oe property

Data -------------------------------------------------------- Letter Count: 884 Word Count: 201 3+ syllables: 23 Syllable Count: 304 Sentence Count: 8 Note: 1 of the 3+ syllable words is a proper noun and will be ignored by the Gunning-Fog Score. Manually Calculated Scores -------------------------------------------------------- Flesch-Kincaid Reading Ease (206.835 - (1.015 * (word_count / sentence_count)) - (84.6 * (syllableCount / word_count))) = 53.380886194029850746268656716418 Flesch-Kincaid Grade Level ((0.39 * (word_count / sentence_count)) + (11.8 * (syllableCount / word_count)) - 15.59) = 12.055516169154228855721393034826 Gunning-Fog Score (((word_count / sentence_count) + (100 * (long_word_count / word_count ))) * 0.4) = 14.428109452736318407960199004975 Coleman-Liau Index ((5.89 * (letter_count / word_count)) - (0.3 * (sentence_count / word_count)) - 15.8) = 10.092338308457711442786069651741 SMOG Index (1.043 * sqrt((long_word_count * (30 / sentence_count)) + 3.1291)) = 9.8605762790974848783982768629462 Automated Readability Index ((4.71 * (letter_count / word_count)) + (0.5 * (word_count / sentence_count)) - 21.43) = 11.847126865671641791044776119403
protected $TextStatistics

$strText protected_oe property

protected $strText