word play
A literary technique based on the meanings and ambiguities of words where the words are used primarily for the purpose of intended effect or amusement. Word play is often based on homophones, puns and idioms (for example, ‘A will is a dead giveaway.’ ‘Time flies like an arrow. Fruit flies like a banana.’).