Socket
Socket
Sign inDemoInstall

polarity-rate

Package Overview
Dependencies
11
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    polarity-rate

Text miner, polarity rater with results between -100% and +100%


Version published
Weekly downloads
1
decreased by-99.81%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

polarity-rate

Text miner, polarity rater with results between -100% and +100%

Unicode Supported

logo

version downloads node status

Installation

npm install polarity-rate

Usage

Simple Usage

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.1

Rules when building wordlist

Test

mocha or npm test

check test folder and QUICKSTART.js for extra usage.

Keywords

FAQs

Last updated on 02 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc