Various utilities for smarter document comparison