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…
More Meta interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Dot Product with Run-Length Encoded Vectors
- Count Lakes Wrapped by a Given Island
- Minimum Remove to Make Valid Parentheses
- LLM with Beam Search and Nucleus Sampling (Meta MSL)