Minetest Mod: Chat Filter
Removes messages containing "bad words" or long messages in all caps from global chat.
License of source code:
GPL 3.0 or later
Copyright (C) 2017 John Cole
License of chat_filter_censor.ogg:
CC BY-SA
This site was very helpful in determining how to write the filters: