The following library module has been tested on BaseX 8.3. It allows one to perform the same computation which is available on this website. If you need to compare long documents (more than 51 sentences), you need to run the code locally, invoking the function lp:i-agldt().