Back to reference

DocumentStats

Statistics about the user-entered text.

interface DocumentStats {
  charsCount: number;
  readabilityScore: number;
  readingTime: Time;
  speakingTime: Time;
  suggestionsCount: number;
  wordsCount: number;
}

Properties

charsCountnumber
Current number of characters, including whitespace.

readabilityScorenumber
Readability score using the Flesch reading-ease test.

Higher scores indicate material that is easier to read. The range for typical text is 0 - 100, but we surface the exact amount even if lower or higher.

readingTimeTime
Expected time needed by an average reader to read the text (250 wpm).

speakingTimeTime
Expected time needed by an average speaker to speak the text aloud (130 wpm).

suggestionsCountnumber
Current number of suggestions.

wordsCountnumber
Current number of words.

Last Updated: 3/14/2023, 9:49:03 PM