stopwordies 1.0.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

A multilingual collection of stopwords (using ISO 639-1 language codes) for Dart/Flutter.

Flutter Dart

A multilingual collection of stopwords (using ISO 639-1 language codes) for Dart/Flutter.

Features

Stopwordies supports up to 57 languages so far 👇🏾. Those with a checkmark are the ones for which stopwords are supported.

ISO 639-1 CodeLanguageIncluded Here
aaAfar
abAbkhazian
afAfrikaans✅
akAkan
sqAlbanian
amAmharic
arArabic✅
anAragonese
hyArmenian✅
asAssamese
avAvaric
aeAvestan
ayAymara
azAzerbaijani
baBashkir
bmBambara
euBasque✅
beBelarusian
bnBengali✅
bhBihari languages
biBislama
boTibetan
bsBosnian
brBreton✅
bgBulgarian✅
myBurmese
caCatalan; Valencian✅
csCzech✅
chChamorro
ceChechen
zhChinese✅
cuChurch Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic
cvChuvash
kwCornish
coCorsican
crCree
cyWelsh
daDanish✅
deGerman✅
dvDivehi; Dhivehi; Maldivian
nlDutch; Flemish✅
dzDzongkha
elGreek, Modern (1453-)✅
enEnglish✅
eoEsperanto✅
etEstonian✅
eeEwe
foFaroese
faPersian✅
fjFijian
fiFinnish✅
frFrench✅
fyWestern Frisian
ffFulah
kaGeorgian
gdGaelic; Scottish Gaelic
gaIrish✅
glGalician✅
gvManx
gnGuarani
guGujarati✅
htHaitian; Haitian Creole
haHausa✅
heHebrew✅
hzHerero
hiHindi✅
hoHiri Motu
hrCroatian✅
huHungarian✅
igIgbo
isIcelandic
ioIdo
iiSichuan Yi; Nuosu
iuInuktitut
ieInterlingue; Occidental
iaInterlingua (International Auxiliary Language Association)
idIndonesian✅
ikInupiaq
itItalian✅
jvJavanese
jaJapanese✅
klKalaallisut; Greenlandic
knKannada
ksKashmiri
krKanuri
kkKazakh
kmCentral Khmer
kiKikuyu; Gikuyu
rwKinyarwanda
kyKirghiz; Kyrgyz
kvKomi
kgKongo
koKorean✅
kjKuanyama; Kwanyama
kuKurdish✅
loLao
laLatin✅
lvLatvian✅
liLimburgan; Limburger; Limburgish
lnLingala
ltLithuanian✅
lbLuxembourgish; Letzeburgesch
luLuba-Katanga
lgGanda
mkMacedonian
mhMarshallese
mlMalayalam
miMaori
mrMarathi✅
msMalay✅
mgMalagasy
mtMaltese
mnMongolian
naNauru
nvNavajo; Navaho
nrNdebele, South; South Ndebele
ndNdebele, North; North Ndebele
ngNdonga
neNepali
nnNorwegian Nynorsk; Nynorsk, Norwegian
nbBokmål, Norwegian; Norwegian Bokmål
noNorwegian✅
nyChichewa; Chewa; Nyanja
ocOccitan (post 1500)
ojOjibwa
orOriya
omOromo
osOssetian; Ossetic
paPanjabi; Punjabi
piPali
plPolish✅
ptPortuguese✅
psPushto; Pashto
quQuechua
rmRomansh
roRomanian; Moldavian; Moldovan✅
rnRundi
ruRussian✅
sgSango
saSanskrit
siSinhala; Sinhalese
skSlovak✅
slSlovenian✅
seNorthern Sami
smSamoan
snShona
sdSindhi
soSomali✅
stSotho, Southern✅
esSpanish; Castilian✅
scSardinian
srSerbian
ssSwati
suSundanese
swSwahili✅
svSwedish✅
tyTahitian
taTamil
ttTatar
teTelugu
tgTajik
tlTagalog✅
thThai✅
tiTigrinya
toTonga (Tonga Islands)
tnTswana
tsTsonga
tkTurkmen
trTurkish✅
twTwi
ugUighur; Uyghur
ukUkrainian✅
urUrdu✅
uzUzbek
veVenda
viVietnamese✅
voVolapük
waWalloon
woWolof
xhXhosa
yiYiddish
yoYoruba✅
zaZhuang; Chuang
zuZulu✅

Usage

It's easy to use 🙈. Just get the words from the currently supported locales like this 👇🏾.

final words = await StopWordies.getFor(locale: SWLocale.en);

To avoid hardcoded locale values, they are easily accessible via the SWLocale enumeration.

Credits

Special credits to the contributors of this NodeJS package from which comes all the collection of stopwords.

Contribution

If you wish to 🚫 remove or 🔁 update some of the stopwords, please file an issue first before sending a pull request.

If you would like to ➕ add a stopword or a new collection of stopwords for a specific language, please add them as a new json file in the assets/jsons/ directory through a pull request. Don't forget to:

  • update the SWLocale enumeration in lib/src/models/locales.model.dart by adding the new locale code.
  • update the locale codes list in the README.md with the new locale code (if not already present) and its checkmark next to it to make clear that it is now supported.
  • run unit tests to see if it does fetch all the stopwords from supported locales and that nothing is broken. If unit tests fail, it probably means that you've missed a step.