Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

multi-stopwords

nguru49MIT2.0.0

stopwords for multiple languages.

stopwords, multiple, languages, (Arabic, Armenian, Basque, Bengali, Breton, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Esperanto, Ewe, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Indonesian, Irish, Italian, Japanese, Korean, Latin, Latvian, Marathi, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Swahili)

readme

Multi-Stopwords

This is a simple module to provide stop words in a variety of languages.

How to use

Install module yarn add multi-stopwords


let stopWords = require('multi-stopwords');

// get stop words by language 
// Note use 2 letter language codes only
console.log( stopWords.en );

// to view all available languages
console.log( stopWords.langs );

// get stop words in all of these languages
console.log( stopWords.all );

// get stop words in a number of languages
// in this case, English and Swahili
// You can list as many languages as you want to return
console.log( stopWords.get('sw','en') );

Note: Stop words are returned as an array that you of lower cased words.