Python module that assesses likelihood that text is gibberish?
<p>I'd like to check whether words or paragraphs of text are likely to contain valid "words," without checking individual words against a dictionary. Basically, the use case is to test whether a website's user entered a bunch of gibberish as input.</p>

<p>For my purposes, it would be enough to have a plugin that checks that there's no inordinate number of sequential consonants or vowels, or that the "words" contain reasonable syllable combinations. For example, it would be fine if the plugin acts in the following ways in the following cases:</p>

<ul>
<li><p>Something like <a href="http://www.dwheeler.com/totro.html" rel="nofollow">"Lekreauclig" or "Prostrebaughi"</a> could be treated as a word, since the letter combos look reasonable enough.</p></li>
<li><p>Something like "twumczsarn" or "aeigou" would be flagged as "probably not a word", since it has strange sequential consonant or vowel combos.</p></li>
<li><p>"mqbadtxjtc" would be flagged as "not a word"</p></li>
</ul>

<p>I'm indifferent to the mechanism by which the module works (perhaps it could be some machine learning-based module that was pre-trained on an english language dictionary), as long as the module is small (so nltk is not an option), suitable for use in a web application, and pre-trained and ready to use, if it works by a method which necessitates training. If it can check paragraphs of text to detect the likelihood that its constituent strings contain gibberish, and give an overall measure of the paragraph's validity, rather than only assessing individual words, even better. Can anyone recommend some modules that are well-suited for this purpose?</p>