a person whose job it is to help playwrights rewrite their plays until the plays are just as good as they can be
Literary advisor, supplier of information about past productions and interpretations of scripts and about the milieu out of which a play has come.
A person who provides specific in-depth knowledge and literary resources to a director, producer, theatre company, or even the audience.