Finding content that is duplicated (or nearly identical) in multiple publications/topics and is fairly easy to spot when you are very familiar with your content or only have a certain amount of it (and therefore it can be fairly easily made into reusable snippets), but it is hard to start the process of finding snippet candidates when you have a lot of content or a lot of new content that you are not familiar with - e.g. after migrating lots of stuff from MS Word documents (which I often do for my consulting clients).
What I would really love, is a tool for finding snippet candidates, e.g. be able to crawl all the XML files, and find blocks of text within the <para> tags that is very similar to text found in other <para> tags, either in the same XML topic or in other XML files in other projects. E.g. find blocks of text within tags (i.e. written content, not the XML itself) greater than say 100 characters that are more than 80% similar to others.
I imagine this kind of tool would take a fairly long time to crawl and return a fairly accurate/useful list of candidate blocks of text, because it would have to load into a database every block of text greater than 100 characters in your content and then run a similarity algorithm across it all, but it would be a great way to encourage users to start making into snippets, and a great way to sell the feature. I think it might be a cool challenge to work on too
I've tried a bunch of third party tools to compare contents of files, but they are all pretty simple and generalised - they all seem to look at the content of files as a whole, not finding similar areas within a file. This is not useful.
Thoughts? Useful?
Has anyone found a good third party tool that can parse XML like I suggest for similarities?