ReadabilityStatistics
Contents
[
Hide
]Document.ReadabilityStatistics property
Provides readability score information for the document.
public ReadabilityStatistics ReadabilityStatistics { get; }
Examples
Shows how to calculate and display the Flesch reading scores for a document.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("The implementation of artificial intelligence algorithms requires a comprehensive understanding of machine learning methodologies and statistical analysis techniques.");
builder.Writeln("Furthermore, the integration of neural networks into existing software architectures presents significant challenges for developers.");
builder.Writeln("This document serves as an illustrative example for calculating readability metrics using the Flesch reading ease formula.");
// Calculate readability statistics.
ReadabilityStatistics stats = doc.ReadabilityStatistics;
// Verify that the scores are within expected valid ranges.
Assert.That(stats.FleschReadingEasy, Is.GreaterThanOrEqualTo(0).And.LessThanOrEqualTo(190));
Assert.That(stats.FleschKincaidGradeLevel, Is.LessThanOrEqualTo(0));
See Also
- class ReadabilityStatistics
- class Document
- namespace Aspose.Words
- assembly Aspose.Words