enableSpamProtection([ 'name' => 'IsSpam', 'mapping' => [ 'Name' => 'authorName', 'Email' => 'authorEmail', 'URL' => 'authorUrl', 'Comment' => 'body', 'ReturnURL' => 'contextUrl' ], 'checks' => [ 'spam', 'profanity' ] ]); } }