Tagged document-recognition