Package Exports
- polarity-rate
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (polarity-rate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
polarity-rate
Text miner, polarity rater with results between -100% and +100% Unicode Supported
![]()
Installation
npm install polarity-rate
Usage
Contains
const PolarityRate = require('polarity-rate');
let text = "aaaa bbbb cccc dddd eeee";
let wordList = [
["aaaa",10],
["aaaa bbbb",50],
["aaaa bbbb cccc xxxx",60]
];
var result = PolarityRate(text,wordList);
console.log(result.rate);//50.1Test
mocha or npm test
check test folder and QUICKSTART.js for extra usage.