I can give you a rough idea to do that. If you need to identify similar type of text, than you can use
similar_text() php function. Than you set a benchmark that how many percentage you will allow. If similarities is more than 50%, than you can say that is a similar post.
Of course, there are few other ways to solve this one.