private function _numberOfCommas($len)
    {
        $avg = (float)log($len, 6);
        $stdDev = (float)($avg / 6.000);
        return ((int)round($this->_gauss($avg, $stdDev)));
    }
private function _numberOfCommas($len)
    {
        $avg = (float)log($len, 6);
        $stdDev = (float)($avg / 6.000);
        return ((int)round($this->_gauss($avg, $stdDev)));
    }
private function _numberOfCommas ( $ len ) { $ avg = ( float ) log ( $ len , 6 ) ; $ stdDev = ( float ) ( $ avg / 6.000 ) ; return ( ( int ) round ( $ this -> _gauss ( $ avg , $ stdDev ) ) ) ; }
Determines the number of commas for a sentence of the given length.
Average and standard deviation are determined superficially.
@param    int $len Length of text.
@return    int    Number of commas to insert.
Determines the number of commas for a sentence of the given length . Average and standard deviation are determined superficially .