Formula to detect the grade level of text according to Flesch-Kincaid Grade Level (1975)
Formula to detect the grade level of text according to the Flesch–Kincaid Grade Level.
See syllable for detecting syllables.
npm install flesch-kincaid
var fleschKincaid = ;/* For “The Australian platypus is seemingly a hybrid of* a mammal and reptilian creature.” (1 sentence, 13 words,* 26 syllables). */;// 13.08
Given an object containing the number of words (
word), the number of
sentence), and the number of syllables (
syllable) in a
document, returns the U.S. grade level associated with the document.
Values can theoretically start at -3.40 and end at Infinity.
automated-readability— Uses character count instead of error-prone syllable parser;
coleman-liau— Uses letter count instead of an error-prone syllable parser;
flesch— Uses syllable count;
gunning-fog— Uses syllable count; needs POS-tagging and NER;
gunning-fog-index; without needing advanced NLP;
spache-formula— Uses a dictionary; suited for lower reading levels.