id-pol operates by self-referencing
you'd have to make a heuristic linguistic filter algorithm to detect self-referencing.
AI stuff uses a lot of computational power, i don't know if that's really viable.
The least effort variant is word-substitution for identities.
However be warned that if you make a censor system, all the identitarians are going to flock to it in order to let their id-pol pass through while they block the id-pol of the rest. You somehow have to find a mechanism that plays the different id-pol factions against each other so that they all block each others id-pol. Seems like a tricky thing to get right.
I don't know maybe it's better to train a gpt-bot on marx's collected works and use it to drown out idpol with in depth economic discussion.