Add-on Hiding certain prefix based on Age?

Would it be possible to somehow code a certain prefix (in my case, NSFW) so that it would automatically hide posts with that prefix from underage members, or maybe even make it so it needs a prefix and a setting to disable "maturity filter" or something like that.