The Guardian Column Generator

Alex H drops this into the comments over at Chris‘. The Guardian Column Generator.

Deep breaths, Chris. This is no more and no less than a stock British columnist at work.

To put in dodgy python: –

def_init_Columnist(grotesque, issue, idiot, synonym)
    insert.Columnist("%")
tuple(grotesque, issue, idiot, synonym),(silly old bat, private equity, Tony Benn, obviously)

print "Oh, I’m just a [%grotesque] and I don’t understand
[%supposedly complicated issue], but surely [%idiot] must be right
because their opinion [%synonym for "suits my prejudices"]" trick."

in.mainloop
   

The parameters of Columnist could also take the values "silly girl",
"stereotype ineffectual middle class twerp", "global warming", "Islam",
"terrorism", "Britney Spears", "Sir Ian Blair", "Lord Goldsmith",
"David Cameron", "common sense" etc.

Yeah, I know I need a template engine to do this properly, but it is
actually true that we could replace her with a simple script.

He really isn’t all impressed with this particular columnist.

Not that there’s anything wrong with that, but I’d gladly pay more for the paper if they guaranteed less of her.

Still, in her defense, he’s also written a stock Worstall column. Didn’t even have to use code to do that he didn’t, so she is at least more complex than I.

In

2 responses

  1. I’m going to try and get this thing working over the weekend. Watch the skies.

  2. dsquared Avatar
    dsquared

    I would be wary of promoting this too much Tim as it is not as if there aren’t one or two recurring cliches, themes and indeed errors in your own published output and these scripts are often quite easy to customise.
    Tim adds: Thanks for the warning although I do think I make reference to that already don’t I?

Leave a Reply

Discover more from Tim Worstall

Subscribe now to keep reading and get access to the full archive.

Continue reading