# wink-porter2-stemmer

> Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter

Latest version **2.0.1** (published 2019-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install wink-porter2-stemmer
pnpm add wink-porter2-stemmer
yarn add wink-porter2-stemmer
bun add wink-porter2-stemmer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2019-07-20 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 26 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sanjaya Kumar Saxena |
| Maintainers | prtksxna, r4chn4, sanjaya |
| Keywords | Stem, Stemmer, Porter Stemmer V2, NLP, Natural Language Processing, wink |

## Links

- npm: https://www.npmjs.com/package/wink-porter2-stemmer
- Repository: https://github.com/winkjs/wink-porter2-stemmer
- Homepage: https://github.com/winkjs/wink-porter2-stemmer#readme
- Issues: https://github.com/winkjs/wink-porter2-stemmer/issues
- npm.io page: https://npm.io/package/wink-porter2-stemmer

## Recent versions

- 2.0.1 (latest) — 2019-07-20
- 2.0.0 — 2018-10-31
- 1.0.8 — 2017-12-30
- 1.0.7 — 2017-09-16
- 1.0.6 — 2017-06-06
- 1.0.5 — 2017-06-06
- 1.0.4 — 2017-06-06
- 1.0.3 — 2017-05-16
- 1.0.2 — 2017-05-16
- 1.0.1 — 2017-05-12
- 1.0.0 — 2017-05-12

## README

# wink-porter2-stemmer

Implementation of [Porter Stemmer Algorithm V2](https://snowballstem.org/algorithms/english/stemmer.html) by Dr Martin F Porter

### [![Build Status](https://api.travis-ci.org/winkjs/wink-porter2-stemmer.svg?branch=master)](https://travis-ci.org/winkjs/wink-porter2-stemmer) [![Coverage Status](https://coveralls.io/repos/github/winkjs/wink-porter2-stemmer/badge.svg?branch=master)](https://coveralls.io/github/winkjs/wink-porter2-stemmer?branch=master) [![Inline docs](http://inch-ci.org/github/winkjs/wink-porter2-stemmer.svg?branch=master)](http://inch-ci.org/github/winkjs/wink-porter2-stemmer) [![devDependencies Status](https://david-dm.org/winkjs/wink-porter2-stemmer/dev-status.svg)](https://david-dm.org/winkjs/wink-porter2-stemmer?type=dev) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/winkjs/Lobby)

<img align="right" src="https://decisively.github.io/wink-logos/logo-title.png" width="100px" >

[Stem](https://en.wikipedia.org/wiki/Stemming) an inflected word into its base form using **`wink-porter2-stemmer`**.

## Installation

Use [npm](https://www.npmjs.com/package/wink-porter2-stemmer) to install:

    npm install wink-porter2-stemmer --save

## Example [![Build Status](https://badge.runkitcdn.com/wink-porter2-stemmer.svg)](https://npm.runkit.com/wink-porter2-stemmer)

```javascript
// Load porter stemmer V2
var stem = require( 'wink-porter2-stemmer' );

console.log( stem( 'properly' ) );
// -> proper

console.log( stem( 'borrowed' ) );
// -> borrow

console.log( stem( 'stemming' ) );
// -> stem
```

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

-   [stem](#stem)
    -   [Parameters](#parameters)
    -   [Examples](#examples)

### stem

Stems an inflected `word` using Porter2 stemming algorithm.

#### Parameters

-   `word` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** — word to be stemmed.

#### Examples

```javascript
stem( 'consisting' );
// -> consist
```

Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** — the stemmed word.

## Need Help?

If you spot a bug and the same has not yet been reported, raise a new [issue](https://github.com/winkjs/wink-porter2-stemmer/issues) or consider fixing it and sending a pull request.

### About wink

[Wink](http://winkjs.org/) is a family of open source packages for **Statistical Analysis**, **Natural Language Processing** and **Machine Learning** in NodeJS. The code is **thoroughly documented** for easy human comprehension and has a **test coverage of ~100%** for reliability to build production grade solutions.

## Copyright & License

**wink-porter2-stemmer** is copyright 2017-19 [GRAYPE Systems Private Limited](http://graype.in/).

It is licensed under the terms of the MIT License.

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