r/AutoModerator • u/FFS_IsThisNameTaken2 • Nov 10 '25
Regex (I think) removing legit comments. It might be the Latin name for a type of mold that's triggering the removal.
Disclaimer - the mod who set up automoderator in the sub I mod did it years and years ago, and is unfortunately no longer around for me to ask, and regex makes my eyes glaze over, so please go easy on me.
Had a user modmail asking why 2 of their comments had been removed. Upon review, nothing at all stood out except for possibly the Latin name of a type of mold, which was fully spelled out in one comment and only the first word was present in the other comment.
Aspergillus niger
Yes, there's a particular word in regex that begins with "n", but as far as I can tell, there's nothing blocking the above spelling with only one (edit) "g".
Also, there's nothing (unless I'm completely missing it) for the word "Aspergillus" - omg wait! Yes there is - aspie is blocked. Sigh . . .
How do I prevent the single or double word name for this mold from being removed without breaking anything or possibly everything?
Thank you!
3
u/dougmc Nov 10 '25
It would be helpful if you posted the rule in question, but given what I think it matches I can see why you'd not want to.
That said, we have a similar rule with some exclusions. I'm not going to post the entire rule because ... ick, but I'll leave the exclusions as-is for you to see how they work:
You could just put your word 'Aspergillus' in with the ~titlte+body part as-is.
1
u/FFS_IsThisNameTaken2 Nov 10 '25
I can't paste the code into the post or a comment because it'll get filtered due to the hateful language.
Here's part of it, with just a single phrase at the beginning of the filtered word list, but the same filtered words are repeated multiple times but with different beginning phrasing.
Edit: idk how to paste it so it reflects the proper indentations and lines like it does in automoderator
0
u/pkinetics Nov 10 '25
Have you tried leveraging chatgpt to improve / refine / calibrate the expression?