fix: proper noun detection too aggressive + add ignore button
Proper noun heuristic: - Changed from matching any single capitalized word to requiring TWO OR MORE consecutive capitalized words (e.g. "Acme Corp") - Single capitalized words at sentence starts were causing massive false positives — every sentence starts with a capital letter - Minimum 5 characters total and 2 proper words required Ignore button: - Each PPI warning item now has an X (ignore) button alongside the + (add mapping) button - Ignored values are persisted to storage (ss_ignored_ppi) so they stay dismissed across page reloads - Ignored values are skipped in both pattern detection and proper noun detection - Clicking ignore removes the item from the warning and re-scans https://claude.ai/code/session_01SWSwDfMVij53bCTNSCLMwn
This commit is contained in:
@@ -220,6 +220,24 @@
|
||||
.ss-ps-add:hover { background: rgba(74, 222, 128, 0.15); }
|
||||
.ss-ps-add:disabled { border-color: #333; cursor: default; }
|
||||
|
||||
.ss-ps-ignore {
|
||||
background: none;
|
||||
border: 1px solid #6b7280;
|
||||
border-radius: 4px;
|
||||
color: #9ca3af;
|
||||
font-size: 11px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ss-ps-ignore:hover { background: rgba(156, 163, 175, 0.15); color: #e5e7eb; }
|
||||
|
||||
/* Floating reveal mode indicator */
|
||||
.ss-reveal-badge {
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user