Ability to match text based on a negative lookbehind/lookahead regex
OpenPublic

Description

Hi,

Abuse filter need to have a feature where in it would provide a unique code to be included (using <!---exceptioncode--> next to given string in article.

Sub feature exception or a word chosen in wiki language should be standard software should suggest randamly generated code to be added next to word <!--exceptionThecode-->

Reason: In certain context certain abusive words remain encyclopedic. For example in artcile http://en.wikipedia.org/wiki/13_June 1934 entry about meeting between Hitler and mussolini when asked to historians certain abusive words do have encyclopedic value.So we may need to give exception at that place only and no where else.This will save abuse filter managers and patrollers.

Thanks


Version: unspecified
Severity: enhancement

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz47495.
Mahitgar created this task.Via LegacyApr 22 2013, 5:04 AM
Nemo_bis added a comment.Via ConduitJun 9 2013, 9:49 AM

You can already exclude pages containing a string, very easily. Are you saying that this kind of regular expressions you're looking for don't work with AbuseFilter? (I don't remember what subset of regex we use exactly.)

Anyway, your approach seems wrong: you can't determine context reliably with regex, you should tag such edits adding words you don't like and then check them manually.

Mahitgar added a comment.Via ConduitJun 9 2013, 10:27 AM

(In reply to comment #1)

You can already exclude pages containing a string, very easily. Are you
saying
that this kind of regular expressions you're looking for don't work with
AbuseFilter? (I don't remember what subset of regex we use exactly.)

Anyway, your approach seems wrong: you can't determine context reliably with
regex, you should tag such edits adding words you don't like and then check
them manually.

:The logic is exemption is needed only in a particular line in particular page.Use anywhere else is abuse and can be disallowed strait away.

:This will increase work for abuse filter only initially.Once the people know they can not cheat the system easily they will automatically desist.Once people desist lesser work for filters,filter managers and patrollers.

:Tagging only continues patrollers work.Wiki's like en wiki has large manpower available to do that.Most of the wikis in wikimedia umbrella are smaller wikis and we have less man power .If we save our time on patrolling our editors will have more time at disposal for content contribution

Ciencia_Al_Poder added a comment.Via ConduitJun 9 2013, 10:35 AM

Mahitgar, you can achieve that easily by changing the condition to

( ( YOURCONDITION ) & article_text != '13 June' )

Mahitgar added a comment.Via ConduitJun 12 2013, 11:06 AM

(In reply to comment #3)

Mahitgar, you can achieve that easily by changing the condition to

( ( YOURCONDITION ) & article_text != '13 June' )

Yes I know, this exempts the complete page.

Thanks

werdna removed a subscriber: werdna.Via WebDec 10 2014, 6:17 PM

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.