Jump to content

Edit filter configuration

Differences between versions

ItemVersion from 01:35, 16 February 2022 by OshwahVersion from 23:00, 9 December 2022 by Suffusion of Yellow
Basic information

Description:

(publicly viewable)
Claims of homosexuality, bisexuality, or transexuality in a BLP
Claims of sexual orientation or gender in a BLP
Notes:
This is a test for the imfamous "gay" filter. Lets see if it works. I will turn it off if it uses excessive resources. --Tim
This is a test for the imfamous "gay" filter. Lets see if it works. I will turn it off if it uses excessive resources. --Tim
Ack. I turned it off. I didn't mean it, I didn't mean it! - Tim
Ack. I turned it off. I didn't mean it, I didn't mean it! - Tim
Muzemike told me it's probably ok to let it run, to see if the condition limit is really that high. -- Tim
Muzemike told me it's probably ok to let it run, to see if the condition limit is really that high. -- Tim
Try to optimize. - Tim1357 6/26
Try to optimize. - Tim1357 6/26
Rename, make private. -- Tim 6/27
Rename, make private. -- Tim 6/27
Adding lesbian as well--hope I didn't break anything :P --Fetchcomms, 7/13
Adding lesbian as well--hope I didn't break anything :P --Fetchcomms, 7/13
Shortening it up a bit. --Fetchcomms, 7/13
Shortening it up a bit. --Fetchcomms, 7/13
Revert to previos version with lesbian. lcase shoud be avoided. -- Tim
Revert to previos version with lesbian. lcase shoud be avoided. -- Tim
Added "bisexual", "transsexual", and "transgender" as these can be easily abused terms. Also updated filter description to reflect these changes. --Fetchcomms, 9/20
Added "bisexual", "transsexual", and "transgender" as these can be easily abused terms. Also updated filter description to reflect these changes. --Fetchcomms, 9/20
made public, no need to hide. --zzuuzz
made public, no need to hide. --zzuuzz
fix 'trans(s)exual' and 'bi(-)sexual' -- Soap
fix 'trans(s)exual' and 'bi(-)sexual' -- Soap
The regex used to check the added_lines should be the same to check the old_wikitext. -- Tim1357 1/13/2011
The regex used to check the added_lines should be the same to check the old_wikitext. -- Tim1357 1/13/2011
Added, and removed LGBT - Wifione - 2/11/2012
Added, and removed LGBT - Wifione - 2/11/2012
1. Optimized for conditions.
1. Optimized for conditions.
2. Added variable to keep regexes in sync and reduce time.
2. Added variable to keep regexes in sync and reduce time.
3. Used irlike to allow "gay" instead of [Gg][Aa][Yy] etc. for readability and maintainability
3. Used irlike to allow "gay" instead of [Gg][Aa][Yy] etc. for readability and maintainability
RF 20150725
RF 20150725


Updated filter to incorporate ccnorm(). This prevents users from using confusable/uncommon unicode variants of letters to bypass or get around the edit filter. --Oshwah 2/15/2022.
Updated filter to incorporate ccnorm(). This prevents users from using confusable/uncommon unicode variants of letters to bypass or get around the edit filter. --Oshwah 2/15/2022.
Change name to something less 1990s (suggested by [[User:MJL]]). Also trip on the more common spelling of "transsexual". --Suffusion of Yellow 22:56 9 Dec 2022
Filter conditions
Conditions:
(documentation)
page_namespace == 0 &
page_namespace == 0 &
!"confirmed" in user_groups & (
!"confirmed" in user_groups & (
     sexuality := "\b(GAY|HOMOSEXUAL|LESBIAN|TRANSEXUAL|BI-*SEXUAL|TRANSGENDER)\b";
     sexuality := "\b(GAY|HOMOSEXUAL|LESBIAN|TRANSS?EXUAL|BI-?SEXUAL|TRANSGENDER)\b";
     ccnorm(added_lines) rlike sexuality &
     ccnorm(added_lines) rlike sexuality &
     '[[Category:Living people]]' in old_wikitext &  
     '[[Category:Living people]]' in old_wikitext &  
     !( ccnorm(old_wikitext) rlike sexuality )
     !( ccnorm(old_wikitext) rlike sexuality )
)
)