2.0.3 • Published 6 months ago
@types/stopword v2.0.3
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
// Type definitions for stopword 2.0
// Project: https://github.com/fergiemcdowall/stopword
// Definitions by: Rico Sandyca Novenza <https://github.com/ricosandyca>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 05 May 2022 18:01:38 GMT
- Dependencies: none
- Global values:
sw
Credits
These definitions were written by Rico Sandyca Novenza, and Piotr Błażejewicz.