@types/stopword
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/stopword

Summary

This package contains type definitions for stopword (https://github.com/fergiemcdowall/stopword).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stopword.

index.d.ts

export as namespace sw;

declare namespace stopword {
    interface Stopword {
        /**
         * Stopword removal
         *
         * @param text Array string of words
         * @param stopwords Array string of your custom stopwords (default: English stopwords | .en)
         */
        removeStopwords: (text: string[], stopwords?: string[]) => string[];
    }

    type LanguageCode =
        | "afr"
        | "ara"
        | "ben"
        | "bre"
        | "bul"
        | "cat"
        | "ces"
        | "dan"
        | "deu"
        | "ell"
        | "eng"
        | "epo"
        | "est"
        | "eus"
        | "fas"
        | "fin"
        | "fra"
        | "gle"
        | "glg"
        | "guj"
        | "hau"
        | "heb"
        | "hin"
        | "hrv"
        | "hun"
        | "hye"
        | "ind"
        | "ita"
        | "jpn"
        | "kor"
        | "kur"
        | "lat"
        | "lav"
        | "lgg"
        | "lggNd"
        | "lit"
        | "mar"
        | "msa"
        | "mya"
        | "nld"
        | "nob"
        | "panGu"
        | "pol"
        | "por"
        | "porBr"
        | "ron"
        | "rus"
        | "slk"
        | "slv"
        | "som"
        | "sot"
        | "spa"
        | "swa"
        | "swe"
        | "tgl"
        | "tha"
        | "tur"
        | "ukr"
        | "urd"
        | "vie"
        | "yor"
        | "zho"
        | "zul";
}

declare const stopword:
    & {
        [Language in stopword.LanguageCode]: string[];
    }
    & stopword.Stopword;

export = stopword;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Rico Sandyca Novenza, and Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/stopword

Weekly Downloads

8,916

Version

2.0.3

License

MIT

Unpacked Size

5.89 kB

Total Files

5

Last publish

Collaborators

  • types