I need a script or regex (which I will be using with Javascript / jQuery to check form input on a website) to check if someone has entered words which are mostly gibberish.
Normal words or sentences should pass the test:
This is a normal sentence (pass)
Peterborough (pass)
Words like this should fail the test:
bfygrydyyisg (fail)
hjrrjmsjsinz (fail)
yqymuqawsioy (fail)
I'd thought of using a check of around 6 consonants or vowels in a row, but the last example above would still pass and I know some english words like 'rhythms' would fail (although that is very unlikely to be needed).
Any ideas? Thanks!