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

jimnalysis

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jimnalysis

A simple, dependency free, bag-of-words text analysis package with common sense heuristics

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

jimnalysis

Jimnalysis is a simple, dependency free, bag-of-words text analysis package with common sense heuristics.

Installation

npm install jimnalysis.

Usage

const jimnalysis = require('jimnalysis');

Jimnalysis currently has two functions: cleanup and analyse.

jimnalysis.cleanup(string); // removes punctuation, extra whitespace and newline characters

jimnalysis.analyse(string) // performs cleanup automatically and analyses the result

This returns an object with two keys: score and comp.

score is a whole number value which can be negative or positive. comp is simply the score divided by the number of words (whitespace delimited) in the input string. This is usually a more useful measure of the sentiment of the input.

FAQs

Package last updated on 22 Nov 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc