Your game is family friendly yes, I get that, but the servers on Java edition have always been self governed by the players and server moderators.
Not only would it be pointless it would drain resources from improving your beautiful, wonderful game.
The idea is massively unpopular from within the community and none of us know how you would do it accurately so that innocent people don't get banned.
If you do add it either add it to Realms only and have it be a toggleable feature. And for servers, if you choose to add it, make it so server owners can disable the feature because, although it is your game, those servers don't belong to Mojang, but to the players who love your game.
Instead you could add a censorship feature that individual accounts can choose to turn on or not, maybe in the social interactions menu.
I mean those are just my thoughts on the matter, a player who loves your game, I doubt you will read this but, y'know, I just wanted to share my thoughts on the topic