In This Article

ITextStatistics Interface

Provides the base requirements for a class that contains numerous statistics such as line, word, character counts, and readability scores for text.

public interface ITextStatistics

Properties

AverageLettersPerWord

The average number of letters per word.

double AverageLettersPerWord { get; }

Property Value

double

See Also

AverageSyllablesPerWord

The average number of syllables per word.

double AverageSyllablesPerWord { get; }

Property Value

double

See Also

AverageWordsPerSentence

The average number of words per sentence.

double AverageWordsPerSentence { get; }

Property Value

double

See Also

Characters

The number of characters in the text.

int Characters { get; }

Property Value

int

See Also

Consonants

The number of consonants in the text.

int Consonants { get; }

Property Value

int

See Also

FleschKincaidGradeLevel

The Flesch-Kincaid grade level, which indicates the number of years of education required to understand the text.

double FleschKincaidGradeLevel { get; }

Property Value

double

Remarks

A grade level of 7.1 indicates that an individual with about 7 years of education could understand the text.

See Also

FleschReadingEaseScore

The Flesch reading ease score in the range of 0 to 100, which indicates how readable the text is.

double FleschReadingEaseScore { get; }

Property Value

double

Remarks

Scores of 90-100 are considered easily understandable by an average 5th grader. Scores of 60-70 are considered easily understandable by 8th and 9th grade students. Scores of 0-30 are best understood by college graduates.

See Also

Letters

The number of letters in the text.

int Letters { get; }

Property Value

int

See Also

Lines

The number of lines in the text.

int Lines { get; }

Property Value

int

See Also

NonWhitespaceCharacters

The number of non-whitespace characters in the text.

int NonWhitespaceCharacters { get; }

Property Value

int

See Also

NonWhitespaceLines

The number of non-whitespace lines in the text.

int NonWhitespaceLines { get; }

Property Value

int

See Also

Sentences

The number of sentences in the text.

int Sentences { get; }

Property Value

int

See Also

Syllables

The number of syllables in the text.

int Syllables { get; }

Property Value

int

See Also

Vowels

The number of vowels in the text.

int Vowels { get; }

Property Value

int

See Also

WhitespaceCharacters

The number of whitespace characters in the text.

int WhitespaceCharacters { get; }

Property Value

int

See Also

WhitespaceLines

The number of whitespace lines in the text.

int WhitespaceLines { get; }

Property Value

int

See Also

Words

The number of words in the text.

int Words { get; }

Property Value

int

See Also

Methods

GetRawStatistics()

Returns the list of ITextStatistic objects that contain the statistic results.

IList<ITextStatistic> GetRawStatistics()

Returns

IList<ITextStatistic>

See Also

Extension Methods

See Also