Socket
Socket
Sign inDemoInstall

wink-porter2-stemmer

Package Overview
Dependencies
0
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wink-porter2-stemmer

Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter


Version published
Weekly downloads
7.5K
increased by35.11%
Maintainers
3
Install size
26.9 kB
Created
Weekly downloads
 

Readme

Source

wink-porter2-stemmer

Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter

Build Status Coverage Status Inline docs devDependencies Status Gitter

Stem an inflected word into its base form using wink-porter2-stemmer.

Installation

Use npm to install:

npm install wink-porter2-stemmer --save

Example Build Status

// 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

Table of Contents

stem

Stems an inflected word using Porter2 stemming algorithm.

Parameters
  • word string — word to be stemmed.
Examples
stem( 'consisting' );
// -> consist

Returns string — the stemmed word.

Need Help?

If you spot a bug and the same has not yet been reported, raise a new issue or consider fixing it and sending a pull request.

About wink

Wink 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.

wink-porter2-stemmer is copyright 2017-19 GRAYPE Systems Private Limited.

It is licensed under the terms of the MIT License.

Keywords

FAQs

Last updated on 20 Jul 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc