Modify examples

This commit is contained in:
Ryszard Staruch 2024-10-23 15:14:40 +02:00
parent 19d1089d13
commit 234883eba6

View File

@ -191,11 +191,7 @@
"\n",
" # profanities according to prof. Jerzy Bralczyk\n",
" profanities = [ \n",
" rf'\\b{prefixes}(kurw[aąeęyi]\\w*)|(ku(z|ź)w\\w*)|(kurew\\w*)\\b',\n",
" rf'\\b{prefixes}(pierd\\w*)\\b',\n",
" rf'\\b{prefixes}(chuj\\w*)\\b',\n",
" rf'\\b{prefixes}(pizd\\w*)\\b',\n",
" rf'\\b{prefixes}(jeb\\w*)\\b',\n",
" ]\n",
"\n",
" profanity_pattern = re.compile('|'.join(profanities), re.IGNORECASE)\n",