Skip to content

feat(tr): expand Turkish dictionary — 14 new roots, new variants, extended whitelist - #1

Closed
badursun wants to merge 2 commits into
mainfrom
claude/verify-readme-examples-Sn54W
Closed

badursun wants to merge 2 commits into
mainfrom
claude/verify-readme-examples-Sn54W

Conversation

@badursun

@badursun badursun commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Turkish dictionary expanded from 25 to 39 roots with 103 new tests (631 → 734 total).

New roots: sürtük, kaltak, fahişe, kevaşe, oğlancı, dingil, avanak, manyak,
hödük, kepaze, rezil, kalleş, namussuz, ahlaksız.

New variants on existing roots:

  • amk: aminakoyayim, aminakoydum, aminakoydugumun, aq
  • orospu: orospucocuklari
  • göt: gotos
  • yarrak: yarrani, yarragimi, yarragini
  • sik: sktr

Whitelist additions: amazon, ambargo, amblem, amfibi, dolap, dolar, dolma,
dolmus, malum, namus, namuslu, ahlak, ahlaki.

Effective forms: ~3,000 → ~5,500+

https://claude.ai/code/session_01BBttofFmRRc2vY7Lj3tbx6

claude added 2 commits March 1, 2026 12:34
…ended whitelist

Turkish dictionary expanded from 25 to 39 roots with 103 new tests (631 → 734 total).

New roots: sürtük, kaltak, fahişe, kevaşe, oğlancı, dingil, avanak, manyak,
hödük, kepaze, rezil, kalleş, namussuz, ahlaksız.

New variants on existing roots:
- amk: aminakoyayim, aminakoydum, aminakoydugumun, aq
- orospu: orospucocuklari
- göt: gotos
- yarrak: yarrani, yarragimi, yarragini
- sik: sktr

Whitelist additions: amazon, ambargo, amblem, amfibi, dolap, dolar, dolma,
dolmus, malum, namus, namuslu, ahlak, ahlaki.

Effective forms: ~3,000 → ~5,500+

https://claude.ai/code/session_01BBttofFmRRc2vY7Lj3tbx6
…and whitelists

English (23→36 roots): Added 13 new slur/insult roots (spic, kike, chink,
gook, tranny, dyke, coon, wetback, bellend, skank, scumbag, turd, bugger).
New compound variants for existing roots (fuckboy, fucktard, wtf, mofo,
shitbag, cockblock, bitchslap, asscrack, etc). Extended whitelist with
cockpit, cockroach, cocoon, raccoon, scunthorpe, shiitake, etc.

Spanish (19→29 roots): Added 10 new roots covering Spain + Latin America
(culero, cojones, polla, follar, capullo, guarro, boludo, pelotudo,
hostia, soplapollas). New variants for existing roots (putazo, coñazo,
chingue, mamonazo). Whitelist: pollo, pollito, folleto, follaje.

German (18→28 roots): Added 10 new roots (schwuchtel, spast, miststück,
bastard, penner, blödmann, vollpfosten, hackfresse, pissnelke, spacken).
New variants for existing roots (verfickt, wixer, scheissegal, arschbacke,
drecksack, schlamperei). Whitelist: schwanger, schwangerschaft, geschichte.

Test count: 734 → 860 (126 new tests). All 860 pass.

https://claude.ai/code/session_01BBttofFmRRc2vY7Lj3tbx6
badursun added a commit that referenced this pull request Mar 1, 2026
…ended whitelist (#1)

Turkish dictionary expanded from 25 to 39 roots with new tests (631 → 860 total).

New roots: sürtük, kaltak, fahişe, kevaşe, oğlancı, dingil, avanak, manyak,
hödük, kepaze, rezil, kalleş, namussuz, ahlaksız.

New variants on existing roots (amk, orospu, göt, yarrak, sik).
Whitelist additions: amazon, ambargo, amblem, amfibi, dolap, dolar, dolma,
dolmus, malum, namus, namuslu, ahlak, ahlaki.

All 860 tests pass, typecheck and build clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@badursun badursun closed this Mar 1, 2026
@badursun
badursun deleted the claude/verify-readme-examples-Sn54W branch March 1, 2026 17:41
badursun added a commit that referenced this pull request Mar 2, 2026
Add universal Unicode hardening to the normalizer pipeline:
- Strip invisible chars (ZWSP, ZWNJ, soft hyphen, BOM, etc.)
- NFKD decomposition (fullwidth→ASCII, precomposed→base+combining)
- Combining mark stripping (defeats accented-char bypass)
- Cyrillic→Latin confusable map (а→a, с→c, е→e, і→i, о→o, р→p, у→u, х→x)

Fixes audit findings #1 (accented bypass), #2 (Cyrillic homoglyph),
#3 (fullwidth bypass), #4 (NFC/NFD inconsistency).

Also adds red-team audit report and 276 adversarial regression tests
covering EN/TR/ES/DE across Unicode, leet, separator, boundary,
ReDoS, and cross-language isolation vectors.

Bundle: +296 bytes gzip (13.5→13.8 KB). No perf regression.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants