whim Look up whim at Dictionary.com
1641, "pun or play on words," shortened from whimwham "fanciful object" (q.v.). Meaning "sudden notion, fancy, or idea" first recorded 1697, probably a shortened form of whimsy.