TextDocumentBase class Null safety

An abstract implementation of TextDocument that uses TextDocumentMixin.

Mixed in types

Constructors

TextDocumentBase()
A const constructor for sub classes.
const

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.
inherited
averageSyllableCount() double
The average number of syllables per word in terms.
inherited
fleschKincaidGradeLevel() int
Returns the readability score of sourceText on a U.S. school grade level (Flesch-Kincaid Grade Level test).
inherited
fleschReadingEaseScore() double
Returns the Flesch reading ease score of the sourceText on a 100-point scale.
inherited
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.
inherited

Operators

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