Commit f056f5f
* fix: detect spaced profanity like "f u c k i n g" (#36)
The isSpanningWordBoundary() method was incorrectly rejecting spaced-out
profanity because it checked if the first or last part was a single
character. This caused intentional obfuscation like "f u c k i n g" to
be missed.
The fix distinguishes between:
- Intentional obfuscation: ALL parts are single chars → allow detection
- Cross-word accidents: only SOME parts are single chars → reject
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: improve docstring for isSpanningWordBoundary method
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c2b8d31 commit f056f5f
2 files changed
+43
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | 364 | | |
366 | | - | |
367 | | - | |
368 | | - | |
| 365 | + | |
369 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
370 | 384 | | |
| 385 | + | |
371 | 386 | | |
372 | | - | |
| 387 | + | |
373 | 388 | | |
374 | | - | |
375 | | - | |
376 | | - | |
| 389 | + | |
377 | 390 | | |
378 | | - | |
| 391 | + | |
379 | 392 | | |
380 | 393 | | |
381 | 394 | | |
382 | | - | |
| 395 | + | |
383 | 396 | | |
384 | 397 | | |
385 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
293 | 309 | | |
0 commit comments