gibberish-detector

Detect Gibberish with JavaScript

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gibberish-detector
2011.0.09 years ago9 years agoMinified + gzip package size for gibberish-detector in KB

Readme

gibberish-detector.js
Gibberish Classification Algorithm in JavaScript Check an example here.
NOTE: This module is in development.

Quick-start

With Node.js

First, run npm install gibberish-detector. For using the module, run:
var gibberish = require('gibberish-detector');

gibberish.detect('This sentence is totally valid.'); //<- returns 1
gibberish.detect('euzbfdhuifdgiuhdsiudvbdjibgdfijbfdsiuddsfhjibfsdifdhbfd'); //<- returns 70.3127178591856

With browser JavaScript

Add the following script to your HTML: <script src="gibberish.min.js"></script>
gibberish.detect('This sentence is totally valid.'); //<- returns 1
gibberish.detect('euzbfdhuifdgiuhdsiudvbdjibgdfijbfdsiuddsfhjibfsdifdhbfd'); //<- returns 70.3127178591856
Documentation
detect(string)
Returns a float between 1 and 100 that shows the porcentage that the string is gibberish.