Socket
Socket
Sign inDemoInstall

@types/stopword

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/stopword

TypeScript definitions for stopword


Version published
Weekly downloads
13K
increased by36.64%
Maintainers
1
Weekly downloads
 
Created
Source

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 1.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 =
        | 'af'
        | 'ar'
        | 'bg'
        | 'bn'
        | 'br'
        | 'ca'
        | 'cs'
        | 'da'
        | 'de'
        | 'el'
        | 'en'
        | 'eo'
        | 'es'
        | 'et'
        | 'eu'
        | 'fa'
        | 'fi'
        | 'fr'
        | 'ga'
        | 'gl'
        | 'ha'
        | 'he'
        | 'hi'
        | 'hr'
        | 'hu'
        | 'hy'
        | 'id'
        | 'it'
        | 'ja'
        | 'ko'
        | 'la'
        | 'lgg'
        | 'lggo'
        | 'lv'
        | 'mr'
        | 'my'
        | 'nl'
        | 'no'
        | 'pa'
        | 'pl'
        | 'pt'
        | 'ptbr'
        | 'ro'
        | 'ru'
        | 'sk'
        | 'sl'
        | 'so'
        | 'st'
        | 'sv'
        | 'sw'
        | 'th'
        | 'tr'
        | 'ur'
        | 'vi'
        | 'yo'
        | 'zh'
        | 'zu';
}

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

export = stopword;

Additional Details

  • Last updated: Sat, 28 Aug 2021 21:01:22 GMT
  • Dependencies: none
  • Global values: sw

Credits

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

FAQs

Package last updated on 28 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc