The principles of textual criticism, although originally developed and refined for works of antiquity, the Bible, and Shakespeare, have been applied to many works, extending backwards from the present to the earliest known written documents, in Mesopotamia and Egypt—a period of about five millennia.