Who Wrote That Headline? Maybe a Robot.

A.I. has taken newsrooms by storm, setting off industrywide soul-searching about its potential and pitfalls.