35
5
...and real golf for my code friends.
This is a challenge based on a one year old XKCD comic which consists mostly of toasts (parodies of the first in the comic) following a distinct pattern, but with some slight variation.
Your task is to write a program (or function) that takes the first half of any toast from the comic (everything up to and including the friends
) as input (via stdin or a function argument) and outputs (or returns) the precise text of the second half. You do not have to handle invalid input, standard loopholes apply, shortest code in bytes wins.
Examples
To help those who don't want to copy the toasts from anywhere else, here are all of them, separated into input and output.
Input: Champagne for my real friends
Output: and real pain for my sham friends!
Input: Pseudopods for my real friends
Output: and real pods for my pseudo-friends!
Input: Petticoats for my real friends
Output: and real coats for my petty friends.
Input: Loosestrife for my real friends
Output: and real strife for my loose friends!
Input: Ladybugs for my real friends
Output: and real bugs for my lady friends!
Input: Single-payer for my real friends
Output: and RealPlayer for my single friends.
Input: Tumbleweeds for my real friends
Output: and real weed for my Tumblr friends!
Input: Fauxhawks for my real friends
Output: and real hawks for my faux friends!
Input: Platonic solids for my real friends
Output: and real solids for my platonic friends!
I think you have a typo at
Single-payer
(instead ofSingle-player
). – Kevin Cruijssen – 2017-03-13T11:08:21.9804Kevin: No. It really is
Single-payer
. – ivzem – 2017-03-13T12:23:41.327@KevinCruijssen - It might be a typo, but if so it's Randall@XKCD's, not ivzem. There's a discussion of it on Explain xkcd. Also, ivzem - as soon as I saw the title in the HNQ list, I was sure you were referencing that comic. Well done!
– Bobson – 2017-03-13T21:45:34.353