# @types/stopword

> TypeScript definitions for stopword

Latest version **2.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/stopword
pnpm add @types/stopword
yarn add @types/stopword
bun add @types/stopword
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2023-11-07 |
| First published | 2020-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/stopword
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stopword
- npm.io page: https://npm.io/package/@types/stopword

## Recent versions

- 2.0.3 (latest) — 2023-11-07
- 2.0.0 (ts3.9) — 2022-05-05
- 1.0.2 (ts3.7) — 2021-08-28
- 1.0.1 (ts3.6) — 2021-05-31
- 1.0.0 (ts3.2) — 2020-11-11
- 0.3.0 (ts2.8) — 2020-02-26
- 2.0.2 — 2023-10-18
- 2.0.1 — 2023-09-25

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stopword/index.d.ts)
````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](https://github.com/ricosandyca), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).

---
_Source: https://npm.io/package/@types/stopword · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
