php function to detect if the string text is meaningful text [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Is there any way to detect strings like putjbtghguhjjjanika? php check if the string is real I want to make a php function that handle a text string and path it to a special algorithm to detect if this text is meaningful or not, and rate the text from 0 to 100% readability score. For example: "skjg askjf akdjf akdjf " will take about 30%. "Hello guys" 90%. "ahdkjshdkjshdkljshdlksjdh" 10% or less. I hope that