textConvert
    Preparing search index...

    Function getTextStats

    • Analyzes text and returns comprehensive statistics about it

      Parameters

      • text: string

        The text to analyze

      • wordsPerMinute: number = 200

        Reading speed in words per minute (default: 200)

      Returns TextStatistics

      TextStatistics object with various metrics

      getTextStats('Hello world! This is a test.');
      // {
      // characterCount: 28,
      // characterCountNoSpaces: 24,
      // letterCount: 20,
      // alphanumericCount: 20,
      // wordCount: 6,
      // sentenceCount: 2,
      // paragraphCount: 1,
      // averageWordLength: 3.3,
      // averageSentenceLength: 3,
      // readingTimeSeconds: 2,
      // readingTimeFormatted: '2 sec'
      // }