A ghostwriter is a writer whose published work is credited to another person .
The division of work between the ghostwriter and the credited author varies a great deal .