How do you determine if an ancient text is being sarcastic?

by tjmaxal
LegalAction

Do you have an example of such a text?