Content Moderation Scorer with Redaction

Asked at Meta · Coding Questions · Difficulty: Easy · Last asked Feb 3, 2026

A social posting app needs a first content-moderation layer before a real classifier is ready. Build two functions: one scores how much of a post's text is made of banned terms, and one turns that score into a moderation action and a cleaned-up version of the text with the banned terms hidden.

Loading the problem…