Skip to content

Instantly share code, notes, and snippets.

@axelmagn
Created January 12, 2017 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axelmagn/dc92a8b59cf8ad67bef65841446022c7 to your computer and use it in GitHub Desktop.
Save axelmagn/dc92a8b59cf8ad67bef65841446022c7 to your computer and use it in GitHub Desktop.
Word replacement rules for Trump->Voldemort
{
"version": "2.0.10",
"replacements": [
{
"active": true,
"case": "Maintain",
"repA": "/\\b((President)\\s*(Elect)?|Mr\\.)\\s*(Donald\\s*(John|J\\.|J)?)?\\s*Trump\\b/i",
"repB": "Lord Voldemort",
"type": "RegEx"
},
{
"active": true,
"case": "Maintain",
"repA": "/\\bDonald\\s*(John|J\\.|J)\\s*Trump\\b/i",
"repB": "Tom Marvolo Riddle",
"type": "RegEx"
},
{
"active": true,
"case": "Override",
"repA": "/\\bDonaldJ?Trump\\b/i",
"repB": "LordVoldemort",
"type": "RegEx"
},
{
"active": true,
"case": "Override",
"repA": "/\\bDonald\\s*Trump\\b/i",
"repB": "Tom Riddle",
"type": "RegEx"
},
{
"active": true,
"case": "Maintain",
"repA": "/\\b(Trump)\\b/",
"repB": "Voldemort",
"type": "RegEx"
},
{
"active": true,
"case": "Maintain",
"repA": "/\\b(Libertarian|Republican|Right[ -_]*Wing)\\b/i",
"repB": "Death Eater",
"type": "RegEx"
},
{
"active": true,
"case": "Maintain",
"repA": "/\\b(Alt[- ]Right|Tea[ -]Party)\\b/i",
"repB": "American Taliban",
"type": "RegEx"
},
{
"active": true,
"case": "Maintain",
"repA": "/\\bPaul\\s*(Davis)?\\s*Ryan\\b/i",
"repB": "Lucius Malfoy",
"type": "RegEx"
},
{
"active": true,
"case": "Maintain",
"repA": "/\\bWhite House\\b/i",
"repB": "Ministry of Magic",
"type": "RegEx"
},
{
"active": true,
"case": "Override",
"repA": "/\\bBannon\\b/i",
"repB": "Malfoy",
"type": "RegEx"
},
{
"active": true,
"case": "Override",
"repA": "Republicans",
"repB": "Death Eaters",
"type": "RegEx"
},
{
"active": true,
"case": "Maintain",
"repA": "/TheDonald/i",
"repB": "TheVoldemort",
"type": "RegEx"
},
{
"active": true,
"case": "Maintain",
"repA": "/\\bKellyanne(\\s*(Elizabeth|E\\.))?\\s*Conway\\b/i",
"repB": "Bellatrix Lestrange",
"type": "RegEx"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment