Text Generation and Evaluation for Human-Machine Collaborative Writing