Stopwords enum

Stop-word sets for 58 languages, keyed by IETF language code.

Obtain an instance via getStopWords:

final stopWords = getStopWords(Locale.parse('en'));
final filtered = tokens
    .where((t) => !stopWords.listing.contains(t))
    .toList();
Inheritance
Available extensions

Values

af → const Stopwords
const Stopwords('af', _afStopwords)
ar → const Stopwords
const Stopwords('ar', _arStopwords)
bg → const Stopwords
const Stopwords('bg', _bgStopwords)
bn → const Stopwords
const Stopwords('bn', _bnStopwords)
br → const Stopwords
const Stopwords('br', _brStopwords)
ca → const Stopwords
const Stopwords('ca', _caStopwords)
cs → const Stopwords
const Stopwords('cs', _csStopwords)
da → const Stopwords
const Stopwords('da', _daStopwords)
de → const Stopwords
const Stopwords('de', _deStopwords)
el → const Stopwords
const Stopwords('el', _elStopwords)
en → const Stopwords
const Stopwords('en', _enStopwords)
eo → const Stopwords
const Stopwords('eo', _eoStopwords)
es → const Stopwords
const Stopwords('es', _esStopwords)
et → const Stopwords
const Stopwords('et', _etStopwords)
eu → const Stopwords
const Stopwords('eu', _euStopwords)
fa → const Stopwords
const Stopwords('fa', _faStopwords)
fi → const Stopwords
const Stopwords('fi', _fiStopwords)
fr → const Stopwords
const Stopwords('fr', _frStopwords)
ga → const Stopwords
const Stopwords('ga', _gaStopwords)
gl → const Stopwords
const Stopwords('gl', _glStopwords)
gu → const Stopwords
const Stopwords('gu', _guStopwords)
ha → const Stopwords
const Stopwords('ha', _haStopwords)
he → const Stopwords
const Stopwords('he', _heStopwords)
hi → const Stopwords
const Stopwords('hi', _hiStopwords)
hr → const Stopwords
const Stopwords('hr', _hrStopwords)
hu → const Stopwords
const Stopwords('hu', _huStopwords)
hy → const Stopwords
const Stopwords('hy', _hyStopwords)
id → const Stopwords
const Stopwords('id', _idStopwords)
it → const Stopwords
const Stopwords('it', _itStopwords)
ja → const Stopwords
const Stopwords('ja', _jaStopwords)
ko → const Stopwords
const Stopwords('ko', _koStopwords)
ku → const Stopwords
const Stopwords('ku', _kuStopwords)
la → const Stopwords
const Stopwords('la', _laStopwords)
lt → const Stopwords
const Stopwords('lt', _ltStopwords)
lv → const Stopwords
const Stopwords('lv', _lvStopwords)
mr → const Stopwords
const Stopwords('mr', _mrStopwords)
ms → const Stopwords
const Stopwords('ms', _msStopwords)
nl → const Stopwords
const Stopwords('nl', _nlStopwords)
no → const Stopwords
const Stopwords('no', _noStopwords)
pl → const Stopwords
const Stopwords('pl', _plStopwords)
pt → const Stopwords
const Stopwords('pt', _ptStopwords)
ro → const Stopwords
const Stopwords('ro', _roStopwords)
ru → const Stopwords
const Stopwords('ru', _ruStopwords)
sk → const Stopwords
const Stopwords('sk', _skStopwords)
sl → const Stopwords
const Stopwords('sl', _slStopwords)
so → const Stopwords
const Stopwords('so', _soStopwords)
st → const Stopwords
const Stopwords('st', _stStopwords)
sv → const Stopwords
const Stopwords('sv', _svStopwords)
sw → const Stopwords
const Stopwords('sw', _swStopwords)
th → const Stopwords
const Stopwords('th', _thStopwords)
tl → const Stopwords
const Stopwords('tl', _tlStopwords)
tr → const Stopwords
const Stopwords('tr', _trStopwords)
uk → const Stopwords
const Stopwords('uk', _ukStopwords)
ur → const Stopwords
const Stopwords('ur', _urStopwords)
vi → const Stopwords
const Stopwords('vi', _viStopwords)
yo → const Stopwords
const Stopwords('yo', _yoStopwords)
zh → const Stopwords
const Stopwords('zh', _zhStopwords)
zu → const Stopwords
const Stopwords('zu', _zuStopwords)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
languageCode String
The IETF language code identifying this stop-word set (e.g. 'en', 'fr').
final
listing Set<String>
The set of stop words for this language.
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

values → const List<Stopwords>
A constant List of the values in this enum, in order of their declaration.