<?xml version="1.0"?><rss version="2.0"><channel><title>Comments on Gunning-Fog Index - AddedBytes.com</title><link>http://www.addedbytes.com/article/gunning-fog-function/</link><description>Latest comments on Gunning-Fog Index on AddedBytes.com</description><!-- ckey="76C662BB" --><item><title>Comment on Gunning-Fog Index</title><link>http://www.addedbytes.com/article/gunning-fog-function/comments/</link><guid>http://www.addedbytes.com/article/gunning-fog-function/comments/</guid><description>Comment by Natjiree J. ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;It is mentioned that any number returned over the value of 22 can be taken to be just 22, and is roughly equivalent to graduate level. My point is that any criteria to judge that the value of 22 is equivalent to or suitable for graduate students.  I need to know. Anyone can answer? I am working on my research about this point.</description></item><item><title>Comment on Gunning-Fog Index</title><link>http://www.addedbytes.com/article/gunning-fog-function/comments/</link><guid>http://www.addedbytes.com/article/gunning-fog-function/comments/</guid><description>Comment by Michael Brenden ( &lt;a href="http://eastghost.com"&gt;http://eastghost.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Thanks for this and the FK algo.  They were dividing by zero if passed text bracketed by phpBB code [color=red]some text[/color].  I added the max(1, ...) to prevent zero sentences and zero words in two slightly modified functions below.
&lt;br /&gt;
&lt;br /&gt;function average_words_sentence( $text )
&lt;br /&gt;{
&lt;br /&gt;	$sentences = max( 1, strlen( preg_replace( '/[^\.!?]/', '', $text ) ) );
&lt;br /&gt;	$words = strlen( preg_replace( '/[^ ]/', '', $text ) );
&lt;br /&gt;	return ( $words / $sentences );
&lt;br /&gt;}
&lt;br /&gt;
&lt;br /&gt;function percentage_number_words_three_syllables( $text )
&lt;br /&gt;{
&lt;br /&gt;	$syllables = 0;
&lt;br /&gt;	$words = explode( ' ', $text );
&lt;br /&gt;	for ( $i = 0; $i &lt; count( $words ); $i++ )
&lt;br /&gt;	{
&lt;br /&gt;		if ( count_syllables( $words[$i] ) &gt; 2 )
&lt;br /&gt;		{
&lt;br /&gt;			$syllables ++;
&lt;br /&gt;		}
&lt;br /&gt;	}
&lt;br /&gt;
&lt;br /&gt;	$score = number_format( ( ( $syllables / max( 1, count( $words ) ) ) * 100 ) );
&lt;br /&gt;
&lt;br /&gt;	return ( $score );
&lt;br /&gt;}</description></item><item><title>Comment on Gunning-Fog Index</title><link>http://www.addedbytes.com/article/gunning-fog-function/comments/</link><guid>http://www.addedbytes.com/article/gunning-fog-function/comments/</guid><description>Comment by Dave Child ( &lt;a href="http://www.addedbytes.com"&gt;http://www.addedbytes.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Hi Martijn,&lt;br /&gt;&lt;br /&gt;I wrote this so long ago, I honestly don't remember why I added 5. I can't think of a reason now, either, so I've removed it.</description></item><item><title>Comment on Gunning-Fog Index</title><link>http://www.addedbytes.com/article/gunning-fog-function/comments/</link><guid>http://www.addedbytes.com/article/gunning-fog-function/comments/</guid><description>Comment by Martijn W. van der Lee ( &lt;a href="http://www.vanderlee.com"&gt;http://www.vanderlee.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;For fun (and functionality), I'm coding a small real-time implementation of Readability tests and noticed an inconsistency in your formula; why are you adding 5 to the calculated index?</description></item><item><title>Comment on Gunning-Fog Index</title><link>http://www.addedbytes.com/article/gunning-fog-function/comments/</link><guid>http://www.addedbytes.com/article/gunning-fog-function/comments/</guid><description>Comment by Anonymous ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;The phrase &quot;Gunning-Fog Index.&quot; gives:&lt;br /&gt;&lt;br /&gt;Flesch-Kincaid Reading Ease: -6&lt;br /&gt;Ideally, web page text should be around the 60 to 80 mark on this scale. The higher the score, the more readable the text. &lt;br /&gt;&lt;br /&gt;Flesch-Kincaid Grade Level: 14&lt;br /&gt;Ideally, web page text should be around the 6 to 7 mark on this scale. The lower the score, the more readable the text. &lt;br /&gt;&lt;br /&gt;Gunning-Fog Index: 25&lt;br /&gt;Ideally, web page text should be between 11 and 15 on this scale. The lower the score, the more readable the text. (Anything over 22 should be considered the equivalent of post-graduate level text).&lt;br /&gt;&lt;br /&gt;So G-F indices are post-graduate-level. Interesting.</description></item><item><title>Comment on Gunning-Fog Index</title><link>http://www.addedbytes.com/article/gunning-fog-function/comments/</link><guid>http://www.addedbytes.com/article/gunning-fog-function/comments/</guid><description>Comment by paul.shann@bigpond.com ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;what type of words help build up decent gunning score.</description></item></channel></rss>