Check post for toxicity and potentially unwanted language!
Use Bazaar or install manually with composer:
composer require tank/perspective
After enabling the extension you will need to paste in your perspective API code from your Google API console. You will also need to set a threshold for automatically marking content as toxic. I've found that 70 works pretty well for my forums, you may need to adjust this value depending on your forums preferred tone.
composer update tank/perspective
Important Privacy Information
This extension makes use of a Google API, the data sent only contains the contents of a post and does not contain any personal information regarding any user. All API request are sent from your Flarum server (masking your user IPs) and does not use any Google cookies on your guest/members browsers. An option to keep google from storing the contents of post for research purposes has been included to further the privacy if you wish.