textConvert
    Preparing search index...

    Interface TextStatistics

    Text statistics interface containing various metrics about text

    interface TextStatistics {
        alphanumericCount: number;
        averageSentenceLength: number;
        averageWordLength: number;
        characterCount: number;
        characterCountNoSpaces: number;
        fleschKincaidGrade: number;
        fleschReadingEase: number;
        letterCount: number;
        paragraphCount: number;
        readingTimeFormatted: string;
        readingTimeSeconds: number;
        sentenceCount: number;
        wordCount: number;
    }
    Index
    alphanumericCount: number

    Letter and number count (alphanumeric characters)

    averageSentenceLength: number

    Average sentence length in words

    averageWordLength: number

    Average word length in characters

    characterCount: number

    Total character count including whitespace and punctuation

    characterCountNoSpaces: number

    Character count excluding whitespace

    fleschKincaidGrade: number

    Flesch-Kincaid Grade Level score (approximate U.S. school grade level needed to understand the text). Subject to the same syllable-estimate accuracy limits as fleschReadingEase.

    fleschReadingEase: number

    Flesch Reading Ease score (higher is easier to read; roughly 0-100, though the formula can produce values outside that range for unusual text). Estimated from word/sentence counts and a syllable-count heuristic -- see estimateSyllables's documentation for its known accuracy limits.

    letterCount: number

    Letter count (only alphabetic characters)

    paragraphCount: number

    Paragraph count in the text (separated by 2+ newlines)

    readingTimeFormatted: string

    Estimated reading time as formatted string (e.g., "2 min 30 sec")

    readingTimeSeconds: number

    Estimated reading time in seconds (based on average reading speed)

    sentenceCount: number

    Sentence count in the text

    wordCount: number

    Word count in the text