Jump to content

Edit filter configuration

Differences between versions

ItemVersion from 13:27, 3 October 2019 by BeetstraVersion from 02:15, 8 November 2019 by Suffusion of Yellow
Basic information
Notes:
Split from Edit Filter 354
Split from Edit Filter 354


Additions to 354:  
Additions to 354:  
* Also testing draft namespace for overly promotional material
* Also testing draft namespace for overly promotional material
* Testing userspace articles which are marked as a draft
* Testing userspace articles which are marked as a draft
* here back-including the edits to another users talkpage with promotional texts, may give some false-positives but will increase speed
* here back-including the edits to another users talkpage with promotional texts, may give some false-positives but will increase speed
* Fix error
* Fix error
* swap two terms, might increase the speed
* swap two terms, might increase the speed


Checking to make sure that the text was actually added, not remaining text from previous edits.  Od Mishehu
Checking to make sure that the text was actually added, not remaining text from previous edits.  Od Mishehu
making public, per discussion. RF 20150806
making public, per discussion. RF 20150806


Flag INDEXing of draft and/or sandbox material. -- MER-C (20180324)
Flag INDEXing of draft and/or sandbox material. -- MER-C (20180324)
Split for readability and added a few search terms. -- MER-C (20181125)
Split for readability and added a few search terms. -- MER-C (20181125)
Fix bug reported by [[User:Nullzero]]. Arithmetic is floating point, so 119 / 2 == 59.5, etc. --Suffusion of Yellow 02:13 8 Nov 2019
Filter conditions
Conditions:
(documentation)
(user_editcount < 20)
user_editcount < 20 &
&((article_namespace / 2 = 59) | ((article_namespace / 2 = 1) &(contains_any(lcase(new_wikitext) ,"{{user sandbox}}","{{user draft}}"))) )
(
& (stringy := (
    equals_to_any(page_namespace, 118, 119) |
    (
        equals_to_any(page_namespace, 2, 3) &  
        contains_any(lcase(new_wikitext) ,"{{user sandbox}}","{{user draft}}")
    )
) & (
    stringy := (
          
          
         /* First person */
         /* First person */
         "(\bour (business|cater|channel|clients?|commitment|company|customers?|employees?|experience|factor(y|ies)|firm|focus|goal|mission|portfolio|products?|professionals?|services?|site|solutions|specialty|staff|team|vision|website))|" +
         "(\bour (business|cater|channel|clients?|commitment|company|customers?|employees?|experience|factor(y|ies)|firm|focus|goal|mission|portfolio|products?|professionals?|services?|site|solutions|specialty|staff|team|vision|website))|" +
         "(we ((are (committed|proud|speciali[sz]ed))|((can )?offer)|pride ourselves|provide|sell|serve|service))|" +
         "(we ((are (committed|proud|speciali[sz]ed))|((can )?offer)|pride ourselves|provide|sell|serve|service))|" +
         "((about|call|email|visit) us\b)|" +
         "((about|call|email|visit) us\b)|" +
         "((follow|like) us on)|" +
         "((follow|like) us on)|" +
          
          
         /* Calls to action - see [[Call to action (marketing)]] */
         /* Calls to action - see [[Call to action (marketing)]] */
         "(download free)|(free download)|" +
         "(download free)|(free download)|" +
         "(free trial)|(order today)|" +
         "(free trial)|(order today)|" +
          
          
         /* Generic PR bullshit */
         /* Generic PR bullshit */
         "((of|for) (businesses|clients|consumers|customers))|" +
         "((of|for) (businesses|clients|consumers|customers))|" +
         "(leading (brand|developer|manufacturer|provider))|" +
         "(leading (brand|developer|manufacturer|provider))|" +
         "(enterprise (solutions|systems))|" +
         "(enterprise (solutions|systems))|" +
         "(innovative (designs|solutions))" +
         "(innovative (designs|solutions))" +
         "(friendly staff)|(new markets)|(it solutions)|(web services)|(mission statement)|" +
         "(friendly staff)|(new markets)|(it solutions)|(web services)|(mission statement)|" +
         "(extra prominent)|(prestigious business)|(targeted at)|(one-stop)|(affordable high-quality)|(integrated systems)|" +
         "(extra prominent)|(prestigious business)|(targeted at)|(one-stop)|(affordable high-quality)|(integrated systems)|" +
         "(employs over)|(full integration)|(customer satisfaction)|(cutting costs)|" +
         "(employs over)|(full integration)|(customer satisfaction)|(cutting costs)|" +


         /* Frequently spammed */
         /* Frequently spammed */
         "blockchain|cryptocurrency|(erc-20)|(initial coin offering)|" + /* See [[WP:GS/Crypto]] */
         "blockchain|cryptocurrency|(erc-20)|(initial coin offering)|" + /* See [[WP:GS/Crypto]] */
          
          
         /* INDEXing pages */
         /* INDEXing pages */
         "__index__|\{\{\s*index\s*(?:\}\}|\|)");
         "__index__|\{\{\s*index\s*(?:\}\}|\|)");


   (lcase(added_lines) rlike stringy & !lcase(removed_lines) rlike stringy)
   (lcase(added_lines) rlike stringy & !lcase(removed_lines) rlike stringy)
)
)