The most comprehensive collection of stopwords for multiple languages.
The collection follows the ISO 639-1 language code.
If you only need stopwords for a specific language, there is a separate collection for each.
The collection is in JSON format. You are free to use this collection any way you like. It is only currently published on npm, bower, and pip.
$ npm install stopwords-iso
$ bower install stopwords-iso
// Node
const stopwords = require('stopwords-iso'); // object of stopwords for multiple languages
const english = stopwords.en; // English stopwords
$ pip install stopwordsiso
# Python
import stopwordsiso as stopwords
stopwords.has_lang("th") # check if there is a stopwords for the language
stopwords.langs() # return a set of all the supported languages
stopwords.stopwords("en") # English stopwords
stopwords.stopwords(["de", "id", "zh"]) # German, Indonesian, and Chinese stopwords
stopwords.stopwords("xxx") # an empty set will be returned for unknown language
If you wish to remove or update some of the stopwords, please file an issue first before sending a PR on the repo of the specific language.
If you would like to add a stopword or a new set of stopwords, please add them as a new text file on the repo of the corresponding language.
All stopwords sources are listed here.