handling tags for the document analyzer service