fix: add common English words to false positives list (#32) - #41
Conversation
Words like "assignment", "passion", "classroom", "passenger" were falsely flagged because they contain the substring "ass". Expanded the false_positives list with ~200 common English words containing profanity substrings (ass, tit, cum, nig, rap, nob). Closes #32 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe pull request addresses false positive detection in the Blasp profanity filter by expanding the false_positives configuration with legitimate words containing common profanity substrings (e.g., "ass", "tit", "cum"), and introduces test coverage to verify legitimate words are not flagged as profane while actual profanity remains detected. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Caution Docstrings generation - FAILED No docstrings were generated. |
Summary
false_positiveslist that contain profanity substrings (e.g. "ass" in "assignment", "tit" in "title", "cum" in "document", "nig" in "night")ass,tit,cum,nig,rap,nobCloses #32
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.