stopwords-utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.5-alpha.0 • Public • Published

stopwords-utils

Utilities for working with stopwords in 50 languages.

Install

  • npm i stopwords-utils

Usage

isStopword

import { isStopword } from 'stopwords-utils';

console.log(isStopword('the')); // true

// second argument is optional and it takes a ISO 639-1 language code
console.log(isStopword('más', 'es')); // true

generateGetRandomStopwordFn

import { generateGetRandomStopwordFn } from 'stopwords-utils';

const getRandomStopwordEn = generateGetRandomStopwordFn();
console.log(getRandomStopwordEn());

const getRandomStopwordEs = generateGetRandomStopwordFn('es');
console.log(getRandomStopwordEs());

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i stopwords-utils

    Weekly Downloads

    0

    Version

    0.0.5-alpha.0

    License

    MIT

    Unpacked Size

    955 kB

    Total Files

    9

    Last publish

    Collaborators

    • gusalbukrk