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

polarity-rate

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polarity-rate - npm Package Compare versions

Comparing version 0.1.0 to 1.1.0

.gitlab-ci.yml

47

package.json
{
"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 @@ فى

@@ -0,0 +0,0 @@ ad

@@ -0,0 +0,0 @@ aan

@@ -0,0 +0,0 @@ aber

@@ -0,0 +0,0 @@ alle

@@ -0,0 +0,0 @@ vreo

@@ -0,0 +0,0 @@ alla

mongodb: https://github.com/mongodb/mongo/tree/master/src/mongo/db/fts
text-miner:https://www.npmjs.com/package/text-miner

@@ -0,0 +0,0 @@ var XRegExp = require('xregexp');

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