Igor Shalamov

Content filtering is a pipeline, not a blocklist

Content filtering is part of my work at Appvillis UAB on the Nicegram messenger, and the main lesson is architectural.

A blocklist answers one question: does this text contain a forbidden word? A filtering pipeline answers several, in order:

  1. language and format;
  2. spam and automation signals;
  3. classification of harmful categories;
  4. context: who sent it, where, in reply to what;
  5. a decision with a confidence score, and a path for appeals.

Each stage can be measured and improved on its own. That is what makes the system maintainable.