English class

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.
no setter
characterFilter AsyncTermModifier
A function that filters out unwanted characters or replaces them with other characters.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
jsonTokenizer JsonTokenizer
Extracts tokens from the fields in a JSON document for use in full-text search queries and indexes.
no setterinherited
nGrammer NGrammer
A language-specific function that generates n-grams from text.
no setterinherited
paragraphSplitter TextSplitter
Returns a list of paragraphs from text.
no setterinherited
phraseSplitter PhraseSplitter
Returns a list of keywords from text.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentenceSplitter TextSplitter
Returns a list of sentences from text.
no setterinherited
stemmer TermModifier
Language-specific function that returns the stem of a term.
no setter
syllableCounter SyllableCounter
Returns the number of syllables in a string after stripping out all white-space and punctuation.
no setterinherited
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.
no setteroverride
termFilter AsyncTermModifier
A filter function that returns a modified term or null.
no setterinherited
termSplitter TextSplitter
Returns a list of words from text.
no setterinherited
tokenizer Tokenizer
Extracts one or more tokens from text for use in full-text search queries and indexes.
no setterinherited

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 nonexistent 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.
kStopWords → const Set<String>
A collection of stop-words excluded from tokenization.