Allow TextService filter to return reason of filter

As a Roblox developer, it is currently too hard to rely on Roblox’s filter due to it being extreme in some cases without returning a reason as to why the text was filter. Roblox’s text filter is supplied by https://www.twohat.com/ (Community Swift) in which it is a real-time content moderation for communities and the like. On the Community Swift’s product page (Developer Resources - Two Hat) it states that there is a form of reason returned with the content filtered.


If developers are allowed to view the topics associated with the filter, and find it to be unrequested with supporting evidence, then it would benefit Roblox as a whole as it will allow for better management of the filter from developer feedback.
An example of how the feature would work:

local filterObj = TextService:FilterStringAsync('Join discord!',Player.UserId,Enum.TextFilterContext.PublicChat)
local filteredString, reason = filterObj:GetNonChatStringForBroadcastAsync()
--> reason: "String 'discord' associated with third party"
25 Likes

FilterStringAsync doesn’t return the filtered string, it returns a TextFilterResult. The returned reason should be included in the results of the methods of the TextFilterResult object.

3 Likes

Thanks for pointing that out, fixed the snippet to be better.