This object is in archive! 

Against swearing in chat use Regex, and consider localizations

Luppen shared this feedback 3 months ago
Not Enough Votes

Hello! I am a space engineers player.

I have noticed a txt file along space engieers files that contains all the swearing that the chat will not allow to be shown in the game

That is not enough, let alone it is not localized

Regex, or pattern matching offers the ability to not only match the pattern of any swearing, but to make sure writing tons of the same character in the swearing will still not be letting the swearing through when used correctly

It is also possible to match patterns of swearings written with non english spellings using regex

Localization is important because that way the server may decide what characters can be used in what order such that for example people from all over the world does not get blocked by the swearing filter when they just try to speak in their own language (it happens rather often)

Localization can also be used client side such that a chat message is not shown for the client with a certain localization instead of the message not showing up completely. So it is with server side swearing possible, not blocked, yet the swearing is just not shown client side

Using client side localization also makes it possible to locally turn off certain word patterns, or turn off the feature completely personally

Leave a Comment
 
Attach a file