Shakespearean comedy relies on well-known comic devices that he used in numerous plays, for example, "mistaken identity." As you will see, Shakespeare repeatedly used the device of letting female characters dress up as boys in order to grant them more social agency and cause merry plot misunderstandings.