detect particular document type and alert