Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions __tests__/filter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,24 @@
expect(result.allowed).toBe(false);
if (!result.allowed) expect(result.reason).toBe('hard_block');
});

Check failure on line 119 in __tests__/filter.test.ts

View workflow job for this annotation

GitHub Actions / Code Quality (Lint & Format)

Delete `··`
it('blocks "makako"', () => {
const result = filterContent('seu makako');
expect(result.allowed).toBe(false);
if (!result.allowed) expect(result.reason).toBe('hard_block');
})

Check failure on line 124 in __tests__/filter.test.ts

View workflow job for this annotation

GitHub Actions / Code Quality (Lint & Format)

Insert `;`

it('blocks "makaka"', () => {
const result = filterContent('sua makaka');
expect(result.allowed).toBe(false);
if (!result.allowed) expect(result.reason).toBe('hard_block');
})

Check failure on line 130 in __tests__/filter.test.ts

View workflow job for this annotation

GitHub Actions / Code Quality (Lint & Format)

Replace `⏎⏎` with `;`


});

Check failure on line 133 in __tests__/filter.test.ts

View workflow job for this annotation

GitHub Actions / Code Quality (Lint & Format)

Delete `⏎⏎··`



// ─── Slurs / ofensas graves — frases ─────────────────────────────────────────

describe('hard-blocked — slur phrases', () => {
Expand All @@ -144,6 +160,20 @@
expect(result.allowed).toBe(false);
if (!result.allowed) expect(result.reason).toBe('hard_block');
});

it('blocks "judeuzinho"', () => {
const result = filterContent('seu judeuzinho');
expect(result.allowed).toBe(false);
if (!result.allowed) expect(result.reason).toBe('hard_block');
})

Check failure on line 168 in __tests__/filter.test.ts

View workflow job for this annotation

GitHub Actions / Code Quality (Lint & Format)

Insert `;`

Check failure on line 169 in __tests__/filter.test.ts

View workflow job for this annotation

GitHub Actions / Code Quality (Lint & Format)

Delete `··`
it('blocks "veveco"', () => {
const result = filterContent('esse veveco');
expect(result.allowed).toBe(false);
if (!result.allowed) expect(result.reason).toBe('hard_block');
})

Check failure on line 174 in __tests__/filter.test.ts

View workflow job for this annotation

GitHub Actions / Code Quality (Lint & Format)

Replace `⏎⏎` with `;`


});

// ─── New slurs added in v2 ───────────────────────────────────────────────────
Expand Down
4 changes: 4 additions & 0 deletions src/wordlists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export const HARD_BLOCKED: string[] = [
'rapariga', 'rameira', 'meretriz',
'vacilao',
'cu de ampola',
'veveco',
'judeuzinho',

// ── Abreviacoes BR comuns ──
'ppk', 'pqp', 'gzr', 'bct', 'pnht',
Expand Down Expand Up @@ -364,6 +366,8 @@ export const HARD_BLOCKED: string[] = [
'mascote de petrolifera',
'paquita do olodum',
'🌊🌵',
'makako',
'makaka',

// ── Nazismo / fascismo / supremacia ──
'nazi', 'nazista', 'nazismo', 'neonazi', 'neonazista', 'neonazismo',
Expand Down
Loading