Scientists and publishers are testing a new breed of software that promises impressive accuracy at spotting AI-written text.