EnglishConstants class Null safety

Constants used by the English text analyzer.

Constructors

EnglishConstants()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Static Methods

kLemmatizer(String term) String
The default lemmatizer returns the term unchanged.
kStemmer(String term) String
The default stemmer returns the term unchanged.

Constants

kAbbreviations → const Map<String, String>
A list of English abbreviations.
{'a' : 'ante', 'A.D.' : 'Anno Domini', 'A.V.' : 'Authorized Version', 'abbrev.' : 'abbreviation', 'Abbrev.' : 'abbreviations…
kSentenceDelimiter → const String
The delimiter inserted at sentence endings to allow splitting of the text into sentences.
r'%~%'
kStopWords → const Set<String>
A collection of stop-words excluded from tokenization.
{'a', 'about', 'above', 'across', 'after', 'against', 'all', 'along', 'although', 'among', 'an', 'and', …
reBracketsAndCarets → const String
Matches all brackets and carets.
r'\(|\)|\[|\]|\{|\}|\<|\>'
reLineEndingSelector → const String
Matches all line endings.
'[\u000A\u000B\u000C\u000D]+'
reNonWordChars → const String
Matches al characters except:
r"[^a-zA-Z0-9À-öø-ÿ¥Œ€@™#-\&_'-]"
rePunctuationSelector → const String
Matches all mid-sentence punctuation.
'(?<=$reWordChars|\\s)[:;,\\-—]+(?=[\\s])|(\\.{2,})'
reSentenceEndingSelector → const String
Matches all sentence endings.
'(?<=$reWordChars|\\s)(\\. )(?=([^a-z])|\\s+|\$)|(\\.)(?=\$)|' '(?<=[^([{])([?!])(?=([^)]}])|\\s+|\$)'
reWordChars → const String
Matches characters used to write words, including:
r"[a-zA-Z0-9À-öø-ÿ¥Œ€@™#-\&_'-]"
reWordEndsWithPeriod → const String
Matches all words that contain only letters and periods and end with a period.
r'(?)([a-zA-Z.]+)(?=([.]))'