A raunchy novel with a dauntless heroine has transformed the lives of a 93-year-old author and three of her friends who were living in nursing homes.