You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copyright detection regression after implementing gibberish detection #4676
"Hi @JonoYang, I would like to work on this issue.
I can investigate why these copyright strings are being flagged as gibberish and try to fix the detection logic."
Hi @JonoYang, I've implemented a fix for this issue in PR #4678. Summary of changes:
Added length threshold (≤4 chars) to prevent short legitimate strings from being flagged as gibberish
Implemented conditional threshold logic to handle overlapping probabilities during training
All tests passing locally (gibberish tests + copyright detection tests)
The fix resolves the test_gibberish_basic failure where strings like "yay!" were incorrectly flagged as gibberish.
Ready for review!
Activity
Jayant-kernel commentedon Jan 13, 2026
"Hi @JonoYang, I would like to work on this issue.
I can investigate why these copyright strings are being flagged as gibberish and try to fix the detection logic."
Fix gibberish detection false positives on copyright strings
Fix aboutcode-org#4676: Gibberish detection false positives on copyri…
Fix aboutcode-org#4676: Gibberish detection false positives on copyri…
Fix aboutcode-org#4676: Gibberish detection false positives on copyri…
Fix aboutcode-org#4676: Gibberish detection false positives on copyri…
Fix aboutcode-org#4676: Gibberish detection false positives on copyri…
Fix aboutcode-org#4676: Prevent gibberish detector from flagging legi…
Fix aboutcode-org#4676: Prevent gibberish detector from flagging legi…
Fix aboutcode-org#4676: Prevent gibberish detector from flagging shor…
Fix aboutcode-org#4676: Prevent gibberish detector from flagging shor…
VaaishnaviS commentedon Jan 14, 2026
Hi @JonoYang,
I have investigated the detection logic and found that the normalize() function is stripping legal symbols (like © and (c) ), which causes the Markov chain to flag these strings as gibberish.
I have developed a fix that introduces a whitelist of legal indicators to be checked before normalization. I am opening a Pull Request for this now.
Fix aboutcode-org#4676: Narrow gibberish bypass for short copyright s…
Fix aboutcode-org#4676: Narrow gibberish bypass for short copyright s…
Fix aboutcode-org#4676: Robust gibberish bypass for short copyright s…
Fix aboutcode-org#4676: Robust gibberish bypass for short copyright s…
Jayant-kernel commentedon Jan 15, 2026
Hi @JonoYang, I've implemented a fix for this issue in PR #4678.
Summary of changes:
The fix resolves the test_gibberish_basic failure where strings like "yay!" were incorrectly flagged as gibberish.
Ready for review!
Fix gibberish detector flagging copyrights as junk