A Tom Swifty (or Tom Swiftie) is a phrase in which a quoted sentence is linked by a pun to the manner in which it is attributed. Tom Swifties may be considered a type of wellerism.
Origins
The name comes from the Tom Swift series of books (1910–present), similar in many ways to the better-known Hardy Boys and Nancy Drew series, and, like them, produced by the Stratemeyer Syndicate. In this series, the young scientist hero underwent adventures involving rocket ships, ray-guns and other things he had invented.
A stylistic idiosyncrasy of at least some books in this series was that ...