retext-porter-stemmer
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "retext-porter-stemmer", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Retext implementation of the Porter Stemmer", | ||
@@ -16,7 +16,8 @@ "license": "MIT", | ||
"devDependencies": { | ||
"eslint": "^0.9.0", | ||
"eslint": "^0.10.0", | ||
"istanbul": "^0.3.0", | ||
"jscs": "^1.0.0", | ||
"matcha": "^0.6.0", | ||
"mocha": "^2.0.0", | ||
"retext": "^0.4.0", | ||
"retext": "^0.5.0-rc.1", | ||
"retext-content": "^0.2.5", | ||
@@ -35,7 +36,9 @@ "retext-inspect": "^0.4.0", | ||
"lint-api": "node_modules/.bin/eslint index.js", | ||
"lint-benchmark": "node_modules/.bin/eslint benchmark.js --global bench,before,suite,set", | ||
"lint-test": "node_modules/.bin/eslint test.js --env mocha", | ||
"lint-style": "node_modules/.bin/jscs index.js test.js --reporter=inline", | ||
"lint": "npm run lint-api && npm run lint-test && npm run lint-style", | ||
"make": "npm run lint && npm run coverage" | ||
"lint-style": "node_modules/.bin/jscs index.js test.js benchmark.js --reporter=inline", | ||
"lint": "npm run lint-api && npm run lint-benchmark && npm run lint-test && npm run lint-style", | ||
"make": "npm run lint && npm run coverage", | ||
"benchmark": "node_modules/.bin/matcha benchmark.js" | ||
} | ||
} |
# retext-porter-stemmer [![Build Status](https://img.shields.io/travis/wooorm/retext-porter-stemmer.svg?style=flat)](https://travis-ci.org/wooorm/retext-porter-stemmer) [![Coverage Status](https://img.shields.io/coveralls/wooorm/retext-porter-stemmer.svg?style=flat)](https://coveralls.io/r/wooorm/retext-porter-stemmer?branch=master) | ||
**[retext](https://github.com/wooorm/retext "Retext")** implementation of the [Porter stemming algorithm](http://tartarus.org/martin/PorterStemmer/). | ||
**[retext](https://github.com/wooorm/retext)** implementation of the [Porter stemming algorithm](http://tartarus.org/martin/PorterStemmer/). | ||
@@ -54,4 +54,19 @@ ## Installation | ||
None, the plugin automatically stems each word (using [wooorm/stemmer](https://github.com/wooorm/stemmer)), and stores the stem in `wordNode.data.stem`. | ||
None, **retext-porter-stemmer** automatically detects the stem of each [`WordNode`](https://github.com/wooorm/textom#textomwordnode-nlcstwordnode) (using **[wooorm/stemmer](https://github.com/wooorm/stemmer)**), and stores the stem in `node.data.stem`. | ||
## Performance | ||
On a MacBook Air, **retext** performs about 11% slower with **retext-porter-stemmer**. | ||
``` | ||
retext w/o retext-porter-stemmer | ||
221 op/s » A paragraph (5 sentences, 100 words) | ||
24 op/s » A section (10 paragraphs, 50 sentences, 1,000 words) | ||
retext w/ retext-porter-stemmer | ||
197 op/s » A paragraph (5 sentences, 100 words) | ||
20 op/s » A section (10 paragraphs, 50 sentences, 1,000 words) | ||
``` | ||
## Related | ||
@@ -63,2 +78,2 @@ | ||
MIT © Titus Wormer | ||
MIT © [Titus Wormer](http://wooorm.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5687
78
9