TextDocumentMixin class Null safety

The TextDocumentMixin provides implementations of the TextDocument.averageSentenceLength, TextDocument.averageSyllableCount, TextDocument.wordCount, TextDocument.fleschReadingEaseScore and TextDocument.fleschKincaidGradeLevel methods.

Implemented types
Implementers

Constructors

TextDocumentMixin()

Properties

hashCode int
The hash code for this object.
read-only, inherited
keywords TermCoOccurrenceGraph
The unique keywords in the document mapped to their RAKE keyword score in a TermCoOccurrenceGraph.
read-only, inherited
nGrams List<String>
A collection of n-grams from the terms in the document.
read-only, inherited
paragraphs List<String>
All the paragraphs in the sourceText.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sentences List<String>
All the sentences in the sourceText.
read-only, inherited
sourceText String
Returns the source text associated with the document.
read-only, inherited
syllableCount int
The total number of syllables in the document.
read-only, inherited
terms List<String>
All the words in the sourceText.
read-only, inherited
tokens List<Token>
The tokens extracted from sourceText.
read-only, inherited
zones Iterable<String>?
A collection of the names of the zones in document that are to be tokenized.
read-only, inherited

Methods

averageSentenceLength() int
The average number of words in sentences.
override
averageSyllableCount() double
The average number of syllables per word in terms.
override
fleschKincaidGradeLevel() int
Returns the readability score of sourceText on a U.S. school grade level (Flesch-Kincaid Grade Level test).
override
fleschReadingEaseScore() double
Returns the Flesch reading ease score of the sourceText on a 100-point scale.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
wordCount() int
The number of words in the sourceText.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited