Skip to content

Instantly share code, notes, and snippets.

@Lokaltog
Last active August 29, 2015 14:02
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 Lokaltog/b54e6503c73996900840 to your computer and use it in GitHub Desktop.
Save Lokaltog/b54e6503c73996900840 to your computer and use it in GitHub Desktop.
Tumblr argument generator
{
"transforms": {
"children": [
{
"id": "d2c2uckdqg",
"children": [
{
"id": "javk2b7lj5",
"transforms": [
[
"^(.*[xs])$",
"$1plain"
],
[
"^(.*)$",
"$1splain"
]
],
"label": "Splain",
"type": "suffix",
"tag": "splain"
}
],
"label": "Verb"
},
{
"id": "9hiwg7rrij",
"children": [
{
"id": "74yvd8e6k3",
"transforms": [
[
"^(.*)f$",
"$1f/$1ve/$1veself"
],
[
"^(.*o)$",
"$1/$1ns/$1nself"
],
[
"^(.*)$",
"$1/$1s/$1self"
]
],
"label": "Expand",
"type": "",
"tag": ""
}
],
"label": "Pronoun"
},
{
"id": "hdn8f9j45x",
"children": [
{
"id": "fciu3uhu8q",
"transforms": [
"function (str) {\n\tstr = str.toUpperCase()\n\treturn [\n\t\tstr,\n\t\t'<i>' + str + '</i>',\n\t\t'<b>' + str + '</b>',\n\t\t'<b><i>' + str + '</i></b>',\n\t].join('<br>')\n}"
],
"label": "Emphasize",
"type": "",
"tag": ""
},
{
"id": "3gh9af3twj",
"transforms": [
"function (str) {\n\tfunction randomRepeat(str, from, to) {\n\t\treturn (new Array(Math.floor(Math.random() * (to - from + 1) + from) + 1)).join(str)\n\t}\n\n\tvar mangleWords = {\n\t\t'and': '&',\n\t\t'you\\'re': 'ur',\n\t\t'you': 'u',\n\t\t'people': 'ppl',\n\t\t'are': 'r',\n\t\t'please': 'plz',\n\t\t'hate': 'h8',\n\t\t'to': '2',\n\t\t'the': 'd',\n\t}\n\tfor (var word in mangleWords) {\n\t\tstr = str.replace(new RegExp('\\\\b' + word + '\\\\b', 'g'), mangleWords[word])\n\t}\n\n\t// Remove all apostrophes\n\tstr = str.replace(/'/g, '')\n\t\n\t// Convert *ing -> *in\n\tstr = str.replace(/\\Bing\\b/g, 'in')\n\n\t// Further tumblrize string randomly (random uppercase, add tildes/asterisks, etc.)\n\tstr = (function(str) {\n\t\tif (Math.random() > 0.6) {\n\t\t\treturn str\n\t\t}\n\n\t\t// Randomly uppercase part of or whole sentences\n\t\t// Uppercase from random point in sentence\n\t\tvar randomPoint = Math.floor(Math.random() * str.length / 2)\n\n\t\tstr = str.slice(0, randomPoint) + str.slice(randomPoint, str.length).toUpperCase()\n\n\t\t// Randomly add tildes and asterisks around str\n\t\tvar wrap\n\t\tif (Math.random() > 0.8) {\n\t\t\twrap = randomRepeat('~', 1, 5)\n\t\t\tif (Math.random() > 0.3) {\n\t\t\t\twrap += '*'\n\t\t\t}\n\t\t\tstr = wrap + str + wrap.split('').reverse().join('')\n\t\t}\n\n\t\treturn str\n\t})(str)\n\n\t// Randomly repeat punctuation\n\tstr = str.replace(/([\\!\\?]+)/g, function (m, p1) {\n\t\treturn randomRepeat(p1.slice(0, 1), 3, 8)\n\t})\n\n\treturn str\n}"
],
"label": "Mangle grammar",
"type": "",
"tag": ""
}
],
"label": "Tumblrize"
}
]
},
"grammar": {
"children": [
{
"id": "mg61ifoqtw",
"children": [
{
"id": "v9awonrenz",
"children": [
{
"id": "swfpjnjk4w",
"children": [
{
"id": "dzi50n8wkx",
"type": "wordlist",
"elements": [
"a",
"ambi",
"bi",
"demi",
"inter",
"mono",
"multi",
"non",
"omni",
"pan",
"para",
"poly",
"quasi",
"semi",
"trans"
],
"label": "Personal"
},
{
"id": "a6tpl4jv0p",
"type": "wordlist",
"elements": [
"allo",
"ambi",
"andro",
"anthro",
"auto",
"demi",
"femme",
"gender",
"gray",
"gyne",
"hyper",
"hypo",
"mono",
"pan",
"pomo",
"quasi",
"semi",
"skolio",
"trans",
"tulpa"
],
"label": "Sexual"
}
],
"label": "Prefix"
},
{
"id": "kz5jj0txfq",
"children": [
{
"id": "0fi7xhitui",
"type": "wordlist",
"elements": [
"curious",
"ethnic",
"gender",
"queer",
"racial",
"romantic",
"sensual",
"sexual"
],
"label": "Personal"
},
{
"id": "od6am3axtg",
"type": "wordlist",
"elements": [
"amorous",
"platonic",
"romantic",
"sensual",
"sexual"
],
"label": "Sexual"
}
],
"label": "Suffix"
}
],
"label": "Alignment property"
},
{
"id": "d6tqox6145",
"type": "sentence",
"elements": [
{
"sentence": [
{
"ref": "dzi50n8wkx",
"whitespace": false
},
{
"ref": "0fi7xhitui"
}
]
},
{
"sentence": [
{
"ref": "a6tpl4jv0p",
"whitespace": false
},
{
"ref": "od6am3axtg"
}
]
}
],
"label": "Alignment",
"tag": ""
},
{
"id": "s2lc3p09mc",
"type": "wordlist",
"elements": [
"attractive",
"confident",
"deathfat",
"differently abled",
"equal",
"fat",
"feminine",
"integral",
"intersectional",
"invisible",
"natural",
"neutral",
"proud"
],
"label": "Good",
"tag": ""
},
{
"id": "rkasgaabsi",
"type": "wordlist",
"elements": [
"able-bodied",
"antediluvian",
"awful",
"binary",
"body-shaming",
"butthurt",
"chauvinistic",
"ciscentric",
"close-minded",
"deluded",
"entitled",
"heteropariarchal",
"ignorant",
"inconsiderate",
"insensitive",
"intolerant",
"judgmental",
"masculine",
"misogynistic",
"nphobic",
"oppressive",
"pathetic",
"patriarchal",
"racist",
"rape culture-supporting",
"smallfat",
"thin",
"white",
"worthless"
],
"label": "Bad",
"tag": ""
},
{
"id": "ynxf02oima",
"type": "wordlist",
"elements": [
"man",
"reddit",
"thin",
"white"
],
"label": "Splaining",
"tag": ""
}
],
"label": "Adjective"
},
{
"id": "cz9rzwwe9n",
"children": [
{
"id": "bnjcdcfx9x",
"type": "wordlist",
"elements": [
"bun",
"drago",
"fluff",
"hoof",
"mon",
"pup",
"purr",
"squeak",
"vam",
"wer"
],
"label": "Kin",
"tag": ""
}
],
"label": "Pronoun"
},
{
"id": "4fgc16xc1n",
"children": [
{
"id": "7mrvlown9u",
"type": "sentence",
"elements": [
{
"sentence": [
{
"whitespace": true,
"ref": "lerq4exuts"
},
{
"str": "reblog my posts"
},
{
"str": "ever",
"probability": 50
},
{
"str": "again"
}
]
},
{
"sentence": [
{
"str": "like",
"probability": 50
},
{
"str": "fucking",
"probability": 50
},
{
"str": "seriously,"
},
{
"str": "just",
"probability": 50
},
{
"ref": "gxmpd2c5i7"
}
]
},
{
"sentence": [
{
"str": "now",
"probability": 50
},
{
"str": "go"
},
{
"str": "the fuck",
"probability": 50
},
{
"str": "away"
}
]
},
{
"sentence": [
{
"str": "i"
},
{
"str": "literally",
"probability": 30
},
{
"ref": "d6z0oi9lj8"
},
{
"str": "even"
}
]
},
{
"sentence": [
{
"ref": "nr3f7yzopb",
"probability": 50
},
{
"str": "leave me"
},
{
"ref": "p2xhw7dlp1"
},
{
"str": "alone"
},
{
"ref": "fsgabc02ac",
"probability": 50
}
]
},
{
"sentence": [
{
"ref": "nr3f7yzopb",
"probability": 50
},
{
"str": "unfollow"
},
{
"ref": "tf8g0sc20n"
},
{
"ref": "zfeh0vtsmf"
},
{
"str": "me"
},
{
"ref": "fsgabc02ac",
"probability": 50
}
]
},
{
"sentence": [
{
"str": "like",
"probability": 50
},
{
"ref": "gi88c206ap"
}
]
}
],
"label": "Toucan"
},
{
"id": "ddjc6qi6ry",
"children": [
{
"id": "gxmpd2c5i7",
"type": "wordlist",
"elements": [
"burn in hell",
"die in a fire",
"drink bleach",
"drink piss",
"fuck off",
"go die in a ditch",
"go to hell",
"rot in hell",
"shut the fuck up",
"shut up"
],
"label": "Universal"
},
{
"id": "emtfmyzfq5",
"type": "wordlist",
"elements": [
"drop dead",
"fuck you",
"get bent",
"get fucked with a cactus",
"go drown in bleach",
"go drown in your own piss",
"go fuck yourself",
"go kill yourself",
"go play in traffic",
"go to hell",
"light yourself on fire",
"make love to yourself in a furnace",
"screw you"
],
"label": "Standalone"
}
],
"label": "Fuck off"
},
{
"id": "gi88c206ap",
"type": "wordlist",
"elements": [
"christ",
"for the love of god",
"oh my fucking god",
"oh my god",
"omfg",
"omg"
],
"label": "OMG"
}
],
"label": "Statement"
},
{
"id": "0gqm888d7l",
"children": [],
"label": "Adverb"
},
{
"id": "633bpgubko",
"children": [
{
"id": "heuvw79giz",
"children": [
{
"id": "d6z0oi9lj8",
"type": "wordlist",
"elements": [
"can't",
"don't"
],
"label": "Can't"
},
{
"id": "lerq4exuts",
"type": "wordlist",
"elements": [
"do not",
"never"
],
"label": "Do not"
},
{
"id": "p2xhw7dlp1",
"type": "wordlist",
"elements": [
"fucking",
"the fuck"
],
"label": "The fuck"
},
{
"id": "zfeh0vtsmf",
"type": "wordlist",
"elements": [
"block",
"ignore"
],
"label": "Block"
},
{
"id": "nr3f7yzopb",
"type": "wordlist",
"elements": [
"feel free to",
"like please",
"now",
"please",
"why can't you just"
],
"label": "Feel free to"
},
{
"id": "fsgabc02ac",
"type": "wordlist",
"elements": [
"immediately",
"right fucking now"
],
"label": "Now"
}
],
"label": "Toucan"
}
],
"label": "Misc"
},
{
"id": "dfkcgwfe97",
"children": [
{
"id": "tf8g0sc20n",
"type": "wordlist",
"elements": [
"and",
"and/or",
"or"
],
"label": "And/or"
}
],
"label": "Conjunction"
},
{
"id": "84w96ba1x5",
"children": [
{
"id": "wjvo0cxflj",
"type": "sentence",
"elements": [
{
"sentence": [
{
"ref": "7mrvlown9u"
}
]
}
],
"label": "Statement",
"tag": ""
}
],
"label": "Exposed"
}
],
"name": "Tumblr argument generator",
"author": "Lokaltog",
"comment": "Tumblr/SJW special snowflake argument and insult generator. Based on tumblr-argument-generator.lokaltog.net.\n\nRarely used synonym word lists are stored under the 'misc' node."
},
"exposed": [
"wjvo0cxflj"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment