Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
wink-porter2-stemmer
Advanced tools
Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter
Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter
Stem an inflected word into its base form using wink-porter2-stemmer
. It is a part of wink — a growing family of high quality packages for Statistical Analysis, Natural Language Processing and Machine Learning in NodeJS.
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.
Parameters
word
string — word to be stemmed.Examples
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-porter2-stemmer is copyright 2017 GRAYPE Systems Private Limited.
It is licensed under the under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
FAQs
Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.