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

Comparing version 2.0.0 to 2.0.1

6

CONTRIBUTING.md

@@ -36,10 +36,10 @@ # Contributing to Wink

### Linting
Well defined linting rules helps us in making code more consistent and avoid bugs. [ESLint](https://eslint.org) and [JSHint](http://jshint.com/) enforces these rules via their configuration files. These files are in the root of each repository.
Well defined linting rules helps us in making code more consistent and avoid bugs. [ESLint](https://eslint.org) enforces these rules via its configuration file. This file is located in the root of each repository.
### Documenting
We believe that the documentation must not only explain the API but also narrate the story of logic, algorithms and references used. Wink uses the [JSDoc](http://usejsdoc.org/) standard for API documentation and [Literate-Programming Standards](https://en.wikipedia.org/wiki/Literate_programming) for documenting the logic using [docker](http://jbt.github.io/docker/src/docker.js.html). The API documentation quality is measured using [Inch CI](https://inch-ci.org/) and we expect that your contribution will improve or maintain the current levels.
We believe that the documentation must not only explain the API but also narrate the story of logic, algorithms and references used. Wink uses the [JSDoc](https://jsdoc.app/) standard for API documentation and [Literate-Programming Standards](https://en.wikipedia.org/wiki/Literate_programming) for documenting the logic using [docker](http://jbt.github.io/docker/src/docker.js.html). The API documentation quality is measured using [Inch CI](https://inch-ci.org/) and we expect that your contribution will improve or maintain the current levels.
### Testing
Wink requires a test coverage of **atleast > 99.5%** and aims for 100%. Any new contribution must maintain the existing test coverage level. We use [Chai](http://chaijs.com/), [Mocha](https://mochajs.org/) and [Istanbul](https://inch-ci.org/), [Coveralls](https://coveralls.io/) to run tests and determine coverage.
Wink requires a test coverage of **atleast > 99.5%** and aims for 100%. Any new contribution must maintain the existing test coverage level. We use [Chai](http://chaijs.com/), [Mocha](https://mochajs.org/) and [Istanbul](https://istanbul.js.org/), [Coveralls](https://coveralls.io/) to run tests and determine coverage.

@@ -46,0 +46,0 @@ ### Committing

{
"name": "wink-porter2-stemmer",
"version": "2.0.0",
"version": "2.0.1",
"description": "Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter",

@@ -34,8 +34,8 @@ "keywords": [

"chai": "^4.2.0",
"coveralls": "^3.0.2",
"coveralls": "^3.0.5",
"docker": "^1.0.0",
"documentation": "^5.3.5",
"eslint": "^5.8.0",
"documentation": "^12.0.2",
"eslint": "^6.0.1",
"istanbul": "^0.4.5",
"mocha": "^5.2.0",
"mocha": "^6.2.0",
"mocha-lcov-reporter": "^1.3.0"

@@ -42,0 +42,0 @@ },

@@ -40,2 +40,4 @@ # wink-porter2-stemmer

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

@@ -46,7 +48,7 @@ ### stem

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

@@ -70,4 +72,4 @@ ```javascript

**wink-porter2-stemmer** is copyright 2017-18 [GRAYPE Systems Private Limited](http://graype.in/).
**wink-porter2-stemmer** is copyright 2017-19 [GRAYPE Systems Private Limited](http://graype.in/).
It is licensed under the terms of the MIT License.
// wink-porter2-stemmer
// Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter
//
// Copyright (C) 2017-18 GRAYPE Systems Private Limited
// Copyright (C) 2017-19 GRAYPE Systems Private Limited
//

@@ -92,23 +92,23 @@ // This file is part of “wink-porter2-stemmer”.

// Exceptions Set I.
var exceptions1 = {
// Mapped!
'skis': 'ski',
'skies': 'sky',
'dying': 'die',
'lying': 'lie',
'tying': 'tie',
'idly': 'idl',
'gently': 'gentl',
'ugly': 'ugli',
'early': 'earli',
'only': 'onli',
'singly': 'singl',
// Invariants!
'sky': 'sky',
'news': 'news',
'atlas': 'atlas',
'cosmos': 'cosmos',
'bias': 'bias',
'andes': 'andes'
};
var exceptions1 = Object.create( null );
// Mapped!
exceptions1.skis = 'ski';
exceptions1.skies = 'sky';
exceptions1.dying = 'die';
exceptions1.lying = 'lie';
exceptions1.tying = 'tie';
exceptions1.idly = 'idl';
exceptions1.gently = 'gentl';
exceptions1.ugly = 'ugli';
exceptions1.early = 'earli';
exceptions1.only = 'onli';
exceptions1.singly = 'singl';
// Invariants!
exceptions1.sky = 'sky';
exceptions1.news = 'news';
exceptions1.atlas = 'atlas';
exceptions1.cosmos = 'cosmos';
exceptions1.bias = 'bias';
exceptions1.andes = 'andes';
// Exceptions Set II.

@@ -115,0 +115,0 @@ // Note, these are to be treated as full words.

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