gibb
is an NPM package capable to detect gibberish. It uses a 2 character Markov chain.
Ported to JavaScript from Python implementation: https://github.com/rrenaud/Gibberish-Detector
npm install gibberish
import {isGibberish} from 'gibb';
console.log(isGibberish('my name is rob and i like to hack')); // false
console.log(isGibberish('is this thing working?')); // false
console.log(isGibberish('i hope so')); // false
console.log(isGibberish('t2 chhsdfitoixcv')); // true
console.log(isGibberish('ytjkacvzw')); // true
console.log(isGibberish('yutthasxcvqer')); // true
console.log(isGibberish('seems okay')); // false
console.log(isGibberish('yay!')); // false
import {train, isGibberish} from 'gibb';
train('./my-model.json', './line-separated-dataset.txt', './good-probes.txt', './bad-probes.txt');
console.log(isGibberish('yay!', './my-model.json'));