retext-keywords
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,7 @@ <!--remark setext--> | ||
2.0.1 / 2016-06-07 | ||
================== | ||
* Fix own properties ([`fe7bd31`](https://github.com/wooorm/retext-keywords/commit/fe7bd31)) | ||
2.0.0 / 2016-06-06 | ||
@@ -7,0 +12,0 @@ ================== |
13
index.js
@@ -22,2 +22,8 @@ /** | ||
/* | ||
* Methods. | ||
*/ | ||
var own = Object.prototype.hasOwnProperty; | ||
/** | ||
@@ -96,3 +102,3 @@ * Get the stem of a node. | ||
if (!(stem in words)) { | ||
if (!own.call(words, stem)) { | ||
words[stem] = { | ||
@@ -269,7 +275,5 @@ 'matches': [match], | ||
var match; | ||
/* | ||
* Iterate over all grouped important words... | ||
*/ | ||
for (keyword in results) { | ||
@@ -298,4 +302,3 @@ matches = results[keyword].matches; | ||
*/ | ||
if (stemmedPhrase) { | ||
if (own.call(stemmedPhrases, phrase.value)) { | ||
/* | ||
@@ -302,0 +305,0 @@ * Add weight per phrase to the score of |
{ | ||
"name": "retext-keywords", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Keyword extraction with Retext", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
17737
362