A ghostwriter is an uncredited author; she or he does not receive any credit for your book/article because when you hire a ghostwriter, the published content is yours alone.