Paris: Google said it will begin offering media groups an artificial intelligence tool designed to stamp out incendiary comments on their websites.

The programming tool, called Perspective, aims to assist editors trying to moderate discussions by filtering out abusive "troll" comments, which Google says can stymie smart online discussions.

"Seventy-two per cent of American internet users have witnessed harassment online and nearly half have personally experienced it," said Jared Cohen, president of Google's Jigsaw technology incubator. "Almost a third self-censor what they post online for fear of retribution," he added in a blog post.

Perspective is an application programming interface, or set of methods for facilitating communication between systems and devices, that uses machine learning to rate how comments might be regarded by other users.