Text this: Toward Optimal Human-Machine Collaboration