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.
export as namespace sw;
declare namespace stopword {
interface Stopword {
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.