User:Phlsph7/Readability.js: Difference between revisions

Content deleted Content added
add standard deviation of word length
more consistent labels
 
(One intermediate revision by the same user not shown)
Line 236:
addRow(overviewTableBody, 'Words', totalWordCount);
addRow(overviewTableBody, 'Syllables', totalSyllableCount);
addRow(overviewTableBody, 'Words perAverage sentence length', (totalWordCount/totalSentenceCount).toFixed(2));
addRow(overviewTableBody, 'Standard deviation <br>of sentence length', (getStandardDeviation(sentenceLengthArray)).toFixed(2));
function getStandardDeviation(numbers){