Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stopword

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stopword - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "stopword",
"version": "2.0.0",
"version": "2.0.1",
"description": "A module for node.js and the browser that takes in text and returns text that is stripped of stopwords. Has pre-defined stopword lists for 62 languages and also takes lists with custom stopwords as input.",

@@ -5,0 +5,0 @@ "main": "./dist/stopword.cjs.js",

@@ -10,2 +10,4 @@ # stopword

If you haven't specified any stopword lists and just gone with the default (which is English), it should continue working without the need for any change.
[![NPM version][npm-version-image]][npm-url]

@@ -86,3 +88,3 @@ [![NPM downloads][npm-downloads-image]][npm-url]

```javaScript
const { removeStopwords, swe } = require('stopword')
const { removeStopwords, _123 } = require('stopword')
const { extract, words, numbers } = require('words-n-numbers')

@@ -117,3 +119,2 @@ const oldString = '쾰른 대성당(독일어: Kölner Dom, 정식 명칭: Hohe Domkirche St. Peter)은 독일 쾰른에 있는 로마 가톨릭교회의 성당이다. 고딕 양식으로 지어졌다. 쾰른 대교구의 주교좌 성당이라 쾰른 주교좌 성당이라고도 불린다. 현재 쾰른 대교구의 교구장은 라이너 마리아 뵐키 추기경이다. 이 성당은 독일에서 가장 잘 알려진 건축물로, 성 바실리 대성당에 이어, 1996년 유네스코 세계유산으로 등재되었다. 유네스코에서는 쾰른 대성당을 일컬어 “인류의 창조적 재능을 보여주는 드문 작품”이라고 묘사하였다.[1] 매일 2만여 명의 관광객이 이 성당을 찾는다.[2]'

## API

@@ -203,8 +204,2 @@

```javascript
const { nob } = require('stopword')
norwegianBokmaalStopwords = nob
// norwegianBokmaalStopwords now contains an Array of norwgian bokmål stopwords
```
#### Languages with no space between words

@@ -211,0 +206,0 @@ `jpn` Japanese, `tha` Thai and `zho` Chinese and some of the other languages supported have no space between words. For these languages you need to split the text into an array of words in another way than just `textString.split(' ')`. You can check out [TinySegmenter](http://chasen.org/%7Etaku/software/TinySegmenter/) for Japanese and [chinese-tokenizer](https://github.com/yishn/chinese-tokenizer) for Chinese.

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