Written by the comedy group The Scaffold (John Gorman, Mike McGear and Roger McGough) in 1968, but based upon an earlier song about a real woman - Lydia Pinkham - who marketed a herb compound for women in the 19th Century.