The text to analyze
Reading speed in words per minute (default: 200)
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'
// }
Analyzes text and returns comprehensive statistics about it