Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
wink-porter2-stemmer
Advanced tools
Readme
Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter
Stem an inflected word into its base form using wink-porter2-stemmer
.
Use npm to install:
npm install wink-porter2-stemmer --save
// 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
Stems an inflected word
using Porter2 stemming algorithm.
word
string — word to be stemmed.stem( 'consisting' );
// -> consist
Returns string — the stemmed word.
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.
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.
FAQs
Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter
The npm package wink-porter2-stemmer receives a total of 5,934 weekly downloads. As such, wink-porter2-stemmer popularity was classified as popular.
We found that wink-porter2-stemmer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.