Skip to main content

Create your own profanity filter Extend Override app

Last updated on April 15, 2025

Overview

The AccelByte Gaming Services (AGS) Extend service provides custom logic for different requirements for profanity filters, which you can use to filter user-generated content from across various features.

This article presents the contract of the customization with an example code of the Validate function, which is a unary function and the only function in the contract.

service ProfanityFilterService {

rpc Validate(ExtendProfanityValidationRequest) returns (ExtendProfanityValidationResponse);
}

Validate

Validate is called when a user's generated content needs to be validated.

In the app, the following function can be found in src/AccelByte.PluginArch.ProfanityFilter.Demo.Server/Services/ProfanityFilterServiceImpl.cs.

public override Task<ExtendProfanityValidationResponse> Validate(ExtendProfanityValidationRequest request, ServerCallContext context)
{
...
}
info

You could find more information about gRPC request handling here.

On this page