'Get parameter overrides based on user\'s waffle flags.'

def akismet_parameter_overrides(self):

    parameters = {}
    if flag_is_active(self.request, constants.SPAM_ADMIN_FLAG):
        parameters['user_role'] = 'administrator'
    if flag_is_active(self.request, constants.SPAM_SPAMMER_FLAG):
        parameters['comment_author'] = 'viagra-test-123'
    if flag_is_active(self.request, constants.SPAM_TESTING_FLAG):
        parameters['is_test'] = True
    return parameters
