Sentence:  On his way to the gibbet, a freak took him in the head to go off with a <WSD>conceit</WSD>. 
Meaning of the word marked with <WSD> tags:  A novel or fanciful idea; a whim. (from 16th c.)