Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stemmer

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stemmer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

1

cli.js

@@ -30,3 +30,2 @@ #!/usr/bin/env node

/* Help. */
function help() {

@@ -33,0 +32,0 @@ return (

5

index.js

@@ -74,2 +74,3 @@ 'use strict'

// Stem `value`.
// eslint-disable-next-line complexity
function stemmer(value) {

@@ -87,3 +88,5 @@ var firstCharacterWasLowerCaseY

// Detect initial `y`, make sure it never matches.
if (value.charCodeAt(0) === 121 /* y */) {
if (
value.charCodeAt(0) === 121 // Lowercase Y
) {
firstCharacterWasLowerCaseY = true

@@ -90,0 +93,0 @@ value = 'Y' + value.substr(1)

{
"name": "stemmer",
"version": "1.0.3",
"version": "1.0.4",
"description": "Porter Stemmer algorithm",

@@ -17,5 +17,5 @@ "license": "MIT",

"bugs": "https://github.com/words/stemmer/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)"
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],

@@ -33,9 +33,9 @@ "files": [

"execa": "^1.0.0",
"nyc": "^13.0.0",
"prettier": "^1.14.2",
"remark-cli": "^5.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.4.0",
"tinyify": "^2.4.3",
"xo": "^0.22.0"
"nyc": "^14.0.0",
"prettier": "^1.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^5.0.0",
"tape": "^4.0.0",
"tinyify": "^2.0.0",
"xo": "^0.24.0"
},

@@ -68,6 +68,2 @@ "scripts": {

"esnext": false,
"rules": {
"no-cond-assign": "off",
"complexity": "off"
},
"ignores": [

@@ -74,0 +70,0 @@ "stemmer.js"

@@ -1,8 +0,13 @@

# stemmer [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
# stemmer
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
[Porter stemming algorithm][source].
## API
## Install
Install:
[npm][]:

@@ -13,3 +18,3 @@ ```bash

Use:
## API

@@ -26,10 +31,2 @@ ```js

Install:
```sh
npm install -g stemmer
```
Use:
```txt

@@ -81,14 +78,24 @@ Usage: stemmer [options] <words...>

[travis-badge]: https://img.shields.io/travis/words/stemmer.svg
[build-badge]: https://img.shields.io/travis/words/stemmer.svg
[travis]: https://travis-ci.org/words/stemmer
[build]: https://travis-ci.org/words/stemmer
[codecov-badge]: https://img.shields.io/codecov/c/github/words/stemmer.svg
[coverage-badge]: https://img.shields.io/codecov/c/github/words/stemmer.svg
[codecov]: https://codecov.io/github/words/stemmer
[coverage]: https://codecov.io/github/words/stemmer
[downloads-badge]: https://img.shields.io/npm/dm/stemmer.svg
[downloads]: https://www.npmjs.com/package/stemmer
[size-badge]: https://img.shields.io/bundlephobia/minzip/stemmer.svg
[size]: https://bundlephobia.com/result?p=stemmer
[license]: license
[author]: http://wooorm.com
[author]: https://wooorm.com
[source]: http://tartarus.org/martin/PorterStemmer
[source]: https://tartarus.org/martin/PorterStemmer
[npm]: https://www.npmjs.com
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc