This is not necessarily a TeX meta question but I do not know where to ask it. From the arXiv I am used that submissions get flagged if they have substantial or some overlap with papers by the same or other authors, see here. There the algorithm is rather simple, and extremely helpful because every once in a while one reads
Substantial text overlap with paper by other authors.
The interpretation is then (rather) obvious. (Yes, there have been problems where author A wrote a report, B copied it but was the first one to post it on the arXiv, A recycled their own paper and got into major problems because it now said that their paper had substantial overlap with the submission of B. Let us not talk about such subtleties here.) My question is whether it is feasible to have something similar for our main site. Ideally it would not only check text overlap but also code overlap. Are there any ideas to implement such features on this site?
Clarification (since at least one user does not seem to have gotten the point): this is (obviously) a question on the overlap of answers. For questions there is a mechanism in place, one can mark the copied question as duplicate. In fact, when typing a question, there is already a robot that identifies related questions on the spot. And such lists appear for all questions. So this site does have software that allows one to identify potentially related questions. (Whether or not the suggestions made by this software is always optimal is something I cannot tell.)
My question in more technical terms:
Can one make the software that identifies related questions also list related answers, and attach these lists to the respective answers?
P.S. I understand that this is not fundamental research, and in a way you can find most of the things somewhere in some manual. Yet it would be nice if there would be some means to make users indicate the source of their codes and strategies. That way there will be crosslinks to other posts, which will add value to the answers because if everyone would add these links, the related posts are just a few mouse clicks away.