How can you detect plagiarism or not?

How can you detect plagiarism or not?