Skip to content
Determines if text contains gibberish.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
data
src
.babelrc
.eslintignore
.eslintrc.js
.gitignore
.npmignore
.npmrc
.travis.yml
README.md
package-lock.json
package.json
runkit.js
test.js

README.md

asdfjkl

Build Status npm Version

Determines if text contains gibberish. Based on Rob Neuhaus's Gibberish-Detector (Python), inspired in the PHP and Ruby ports.

How it works

The build-in model is built by feeding "The Adventures of Sherlock Holmes" (data/big.txt) into the cli: asdfjkl --train. The resulting model stores the probability of transitioning from each character to other character. This is later used to determine if the text being tested has similar transitions or not. A better explanation can be found in the original author's README - Hot it works

Usage

import asdfjkl from 'asdfjkl';

asdfjkl('asdfjkl');
// true
asdfjkl('Hello World!');
// false
You can’t perform that action at this time.