A professional writer who is paid to write material that is officially credited to another person; one who writes on behalf of someone else, often for a celebrity.
Smith was listed as the author of his autobiography, but a ghostwriter did most of the work.
One who writes for the screen, who writes drama for film or television; especially a professional who knows the conventions appropriate to such work.