EnglishAnalysis class Null safety
AnalysisLanguage implementation for English.
- Implemented types
Constructors
- EnglishAnalysis()
-
A const constructor to allow an instance to be used as default.
const
Properties
- bracketsAndCaretsSelector → String
-
Returns a regular expression String that selects all brackets and carets.
read-only, override
- hashCode → int
-
The hash code for this object.
read-only, inherited
- lineEndingSelector → String
-
Returns a regular expression String that selects all line endings.
read-only, override
- punctuationSelector → String
-
Returns a regular expression String that selects all punctuation.
read-only, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- sentenceEndingSelector → String
-
Returns a regular expression String that selects all sentence endings.
read-only, override
-
stopWords
→ Iterable<
String> -
A collection of stop-words excluded from tokenization.
read-only, override
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
Constants
- instance → const EnglishAnalysis
- A static const EnglishAnalysis instance.
-
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
-
Returns a regular expression String that selects all brackets and carets.
r'\(|\)|\[|\]|\{|\}|\<|\>' - reLineEndingSelector → const String
-
Returns a regular expression String that selects all line endings.
r'[\r|\n|\r\n]' - reNonWordChars → const String
-
Does not match characters used to write words, including:
r"[^a-zA-Z0-9¥Œ€@™#-\&_'-]" - rePunctuationSelector → const String
-
Returns a regular expression String that selects all line endings.
r"(?<=[a-zA-Z0-9¥Œ€@™#-\&_'-]|\s)[:;,\-—]+(?=[\s])|(\.{2,})" - reSentenceEndingSelector → const String
-
Returns a regular expression String that selects all line endings.
r"(?<=[a-zA-Z0-9-¥Œ€@™#-\&_'-]|\s)(\. )(?=([^a-z])|\s+|$)|(\.)(?=$)|(?<=[^([{])([?!])(?=([^)]}])|\s+|$)" - reWordEndsWithPeriod → const String
-
Matches all words that contain only letters and periods and end with
a period.
r'(?)([a-zA-Z.]+)(?=([.]))' - wordChars → const String
-
Matches characters used to write words, including:
r"[a-zA-Z0-9¥Œ€@™#-\&_'-]"