English class Null safety

A TextAnalyzer implementation for English language analysis.

Inheritance
Implemented types

Constructors

English({Map<String, String> termExceptions = const <String, String>{}})
A const constructor to allow an instance to be used as default.
const

Properties

abbreviations Map<String, String>
A list of common English abbreviations. This list is not exhaustive.
read-only
characterFilter AsyncTermModifier
A function that filters out unwanted characters or replaces them with other characters.
read-only, override
hashCode int
The hash code for this object.
read-only, inherited
jsonTokenizer JsonTokenizer
Extracts tokens from the fields in a JSON document for use in full-text search queries and indexes.
read-only, inherited
nGrammer NGrammer
A language-specific function that generates n-grams from text.
read-only, inherited
paragraphSplitter TextSplitter
Returns a list of paragraphs from text.
read-only, inherited
phraseSplitter PhraseSplitter
Returns a list of keywords from text.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sentenceSplitter TextSplitter
Returns a list of sentences from text.
read-only, inherited
stemmer TermModifier
Language-specific function that returns the stem of a term.
read-only
syllableCounter SyllableCounter
Returns the number of syllables in a string after stripping out all white-space and punctuation.
read-only, inherited
termExceptions Map<String, String>
A map of term exceptions
final
termExpander TermExpander?
Expands text to a collection of related Strings, e.g. synonyms, abbreviations or spelling suggestions.
read-only, override
termFilter AsyncTermModifier
A filter function that returns a modified term or null.
read-only, inherited
termSplitter TextSplitter
Returns a list of words from text.
read-only, inherited
tokenizer Tokenizer
Extracts one or more tokens from text for use in full-text search queries and indexes.
read-only, inherited

Methods

asNumber(String term) num?
Attempts to parse the term to a number. Returns null if the term does not represent a number, amount or percentage
isStopword(String term) bool
Returns true if the term is a stopword excluded from tokenization.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

analyzer → const TextAnalyzer
Instantiates a static const English instance.
kAbbreviations → const Map<String, String>
A list of English abbreviations.
_EnglishConstants.kAbbreviations
kStopWords → const Set<String>
A collection of stop-words excluded from tokenization.
_EnglishConstants.kStopWords