polarity-rate
Advanced tools
Comparing version 0.1.0 to 1.1.0
{ | ||
"name": "polarity-rate", | ||
"version": "0.1.0", | ||
"description": "An smart text miner, polarity rater with result beetween %-100 and %100", | ||
"version": "1.1.0", | ||
"description": "Text miner, polarity rater with results between -100% and +100%", | ||
"main": "polarity-rate.js", | ||
"keywords":[ | ||
"google client", | ||
"bing client", | ||
"search engine client" | ||
"keywords": [ | ||
"text-miner", | ||
"text-mining", | ||
"miner", | ||
"mining", | ||
"polarity-rate", | ||
"polarity-rater", | ||
"polarity", | ||
"text-analytics", | ||
"document-term-matrix", | ||
"dtm", | ||
"text-analysis", | ||
"natural", | ||
"afinn", | ||
"sentiment", | ||
"subjective", | ||
"subjectivity", | ||
"polarity", | ||
"opinion", | ||
"emotion", | ||
"unicode" | ||
], | ||
"dependencies": { | ||
"escape-string-regexp": "*" | ||
"xregexp": "^3.2.0", | ||
"franc-min": "^3.1.1" | ||
}, | ||
"devDependencies": { | ||
"xlsx": "*", | ||
"fs": "*", | ||
@@ -23,16 +42,16 @@ "mocha": "*", | ||
}, | ||
"homepage":"https://gitlab.com/mehmet.kozan/polarity-rate", | ||
"bugs" :{ | ||
"url" : "https://gitlab.com/mehmet.kozan/polarity-rate/issues", | ||
"email" : "mehmet.kozan@live.com" | ||
"homepage": "https://gitlab.com/autokent/polarity-rate", | ||
"bugs": { | ||
"url": "https://gitlab.com/autokent/polarity-rate/issues", | ||
"email": "mehmet.kozan@live.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://gitlab.com/mehmet.kozan/polarity-rate.git" | ||
"url": "https://gitlab.com/autokent/polarity-rate.git" | ||
}, | ||
"author": "Mehmet Kozan", | ||
"author": "Mehmet Kozan <mehmet.kozan@live.com>", | ||
"license": "MIT", | ||
"engines": { | ||
"node": "8.2.1" | ||
"node": ">=6.8.1" | ||
} | ||
} |
@@ -34,5 +34,6 @@ var XLSX = require('xlsx'); | ||
//build ngaram array | ||
//return text.replace(/[^a-zA-Z0-9ğĞçÇöÖüÜıIİişŞ]/g,' ').replace(/[\s]+/gm,' ').replace(/\s[a-zA-Z0-9ğĞçÇöÖüÜıIİişŞ]{1,3}\s/g,' ').replace(/[\s]+/g,' ').toLowerCase().trim(); | ||
debugger; | ||
//return text.replace(/[^a-zA-Z0-9ğĞçÇöÖüÜıIİişŞ]/g,' ').replace(/[\s]+/gm,' ').replace(/\s[a-zA-Z0-9ğĞçÇöÖüÜıIİişŞ]{1,3}\s/g,' ').replace(/[\s]+/g,' ').toLowerCase().trim(); | ||
return cleanedText; | ||
} | ||
@@ -284,2 +285,5 @@ | ||
module.exports = Miner; | ||
//for testing purpose | ||
if (!module.parent) | ||
@@ -292,2 +296,1 @@ { | ||
module.exports = Miner; |
@@ -0,0 +0,0 @@ ad |
@@ -0,0 +0,0 @@ aan |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ ei |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ aber |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ alle |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ vreo |
@@ -0,0 +0,0 @@ а |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ alla |
@@ -0,0 +0,0 @@ mu |
@@ -0,0 +0,0 @@ فى |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ ad |
@@ -0,0 +0,0 @@ aan |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ ei |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ aber |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ alle |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ vreo |
@@ -0,0 +0,0 @@ а |
@@ -0,0 +0,0 @@ a |
@@ -0,0 +0,0 @@ alla |
@@ -0,0 +0,0 @@ mu |
@@ -0,0 +0,0 @@ a |
mongodb: https://github.com/mongodb/mongo/tree/master/src/mongo/db/fts | ||
text-miner:https://www.npmjs.com/package/text-miner |
http | ||
https |
@@ -0,0 +0,0 @@ var XRegExp = require('xregexp'); |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
50
293
0
1
84475
2
4
28
+ Addedfranc-min@^3.1.1
+ Addedxregexp@^3.2.0
+ Addedcollapse-white-space@1.0.6(transitive)
+ Addedfranc-min@3.1.1(transitive)
+ Addedn-gram@1.1.2(transitive)
+ Addedtrigram-utils@1.0.3(transitive)
+ Addedtrim@0.0.1(transitive)
+ Addedxregexp@3.2.0(transitive)
- Removedescape-string-regexp@*
- Removedescape-string-regexp@5.0.0(transitive)