Determine the purpose of the document