2017 © Pedro Peláez
 

library gibberish-detector

Determines if text contains gibberish.

image

foxorm/gibberish-detector

Determines if text contains gibberish.

  • Thursday, December 8, 2016
  • by surikat
  • Repository
  • 1 Watchers
  • 3 Stars
  • 3,175 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

Gibberish Detector PHP

Determines if text contains gibberish., (*1)

Example 1: You want phrases like "Hello, world" and never "dsfknifdkoindwsif32839hdd", (*2)

Example 2: You want usernames like "jamesjohn" and never "WWWWWWWWWWWWWWWWWWW", (*3)

How does it work?

Markov Chains. In this case, they describe which letters should or should not to be next to each other. By showing examples of good text and bad text, it teaches the software how to guess what letter combinations look like gibberish and which letter combinations look reasonably likely to be good text., (*4)

How do I use it?

1) Train the Markov Chains, (*5)

$trainingSuccessful = Gibberish::train(
    $big_text_file,
    $good_text_file,
    $bad_text_file,
    $matrix_file
    );

2) Test new text against the Markov Chains, (*6)

$oddsItsGoodText = Gibberish::test($inputText, $matrix_file, true);

Who made it?

Originally written in Python by Rob Renaud. rrenaud@gmail.com https://github.com/rrenaud/Gibberish-Detector, (*7)

Translated into PHP by Oliver Lillie. buggedcom@gmail.com https://github.com/buggedcom/Gibberish-Detector-PHP, (*8)

Spruced up by Richard512, (*9)

Implementation in composer by Jo Surikat jo@surikat.pro https://github.com/redcatphp/gibberish-detector, (*10)

The Versions

08/12 2016

dev-master

9999999-dev

Determines if text contains gibberish.

  Sources   Download

MIT

by Oliver Lillie
by Rob Renaud

08/12 2016

v1.1.0

1.1.0.0

Determines if text contains gibberish.

  Sources   Download

MIT

by Oliver Lillie
by Rob Renaud

15/11 2016

v1.0.0

1.0.0.0

Determines if text contains gibberish.

  Sources   Download

MIT

by Oliver Lillie
by Rob Renaud