I have a form where my customers leave their feedback. After the form is submitted I have a query that displays the comments/reviews to my website.
Is there a method to filter out gibberish reviews like “cakjcnsakncaklcn” and block them from showing on my main site?
Addition: Another thought would be not to allow people to submit their comments if they have spelling mistakes. Is there a js validation for that or something similar?
Is this being submitted to a server that you have control over? I’m no NLP expert and I suppose there’s a complicated way of doing this, but I would just test every word that gets submitted against an english dictionary and reject if none of the words are matches.
If you can’t intercept this on the server, you can try using http://www.javascriptspellcheck.com/