An example might be the following: "Romeo, wherefore art thou Romo?" from the classic Shakespeare play. Suppose I changed it slightly to "Roberto, why are you Roberto?"
Is there a computer program or algorithm that would detect the fact that I basically used synonyms for each word in the original, and thereby produced a high degree of correlation with the original? And would it be able to measure the "degree" of plagiarism?