Sentence:  He whirligigged and pirouetted, dancing and <WSD>cavorting</WSD> round like an inebriated ape. 
Meaning of the word marked with <WSD> tags:  To move about carelessly, playfully or boisterously.