Well, I don't know if I could ever be able to compete with a system as complex as Wikipedia's, but I do know that I've posted a code snippet a time or two that compares two different strings word-by-word. Or, alternatively, you could compare them character-by-character for a more strict comparison.