Automated judgment of document qualities