<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/names-of-b-s-badder-than-taylor-swift-a-class-in-womens-studies/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.masalmon.eu/2017/12/05/badderb/"> Maëlle</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a rel="nofollow" href="http://www.masalmon.eu/2016/10/02/first7jobs-repost/" target="_blank">Once</a> <a rel="nofollow" href="http://www.masalmon.eu/2017/02/05/actuallivingscientists/" target="_blank">again</a>, a Twitter trend sent me to my R prompt… Here is a <a rel="nofollow" href="http://knowyourmeme.com/memes/name-a-badder-bitch-than-taylor-swift" target="_blank">bit of context</a>. My summary: Taylor Swift apparently plays the bad girl in her new album and a fan of hers asked a question…</p>
<blockquote class="twitter-tweet" data-lang="ca">
<p lang="en" dir="ltr">Name a bitch badder than Taylor Swift <img alt="😍" src="https://s.w.org/images/core/emoji/2.3/72x72/1f60d.png" class="wp-smiley"><img alt="😛" src="https://s.w.org/images/core/emoji/2.3/72x72/1f61b.png" class="wp-smiley"><img alt="😤" src="https://s.w.org/images/core/emoji/2.3/72x72/1f624.png" class="wp-smiley"> <a rel="nofollow" href="https://t.co/AkSyQBUIME" target="_blank">pic.twitter.com/AkSyQBUIME</a></p>
<p>— Nutella (@xnulz) <a rel="nofollow" href="https://twitter.com/xnulz/status/928857792982781952?ref_src=twsrc%5Etfw" target="_blank">10 de novembre de 2017</a></p></blockquote>
<p>The tweet was then quoted by many people mentioning badass women, and I decided to have a look at these heroes!</p>
<p><span></span></p>
<h1>Name tweets badder than Nutella’s</h1>
<p>I was a bit lazy and asked Mike Kearney, <code>rtweet</code> maintainer, how to find tweets quoting a tweet, to which <a rel="nofollow" href="https://twitter.com/hrbrmstr/status/937340032456814592" target="_blank">Bob Rudis answered</a>. Now that I even had the code, it was no trouble at all getting the data. I added the filtering steps myself, see, I’m not <em>that</em> lazy. I also removed the link to the quoted tweet that was at the end of each tweet.</p>
<div>
<div>
<pre><code><span>question_tweet</span><span> </span><span>&lt;-</span><span> </span><span>&quot;928857792982781952&quot;</span><span>
</span><span>badass</span><span> </span><span>&lt;-</span><span> </span><span>rtweet</span><span>::</span><span>search_tweets</span><span>(</span><span>question_tweet</span><span>,</span><span> </span><span>n</span><span> </span><span>=</span><span> </span><span>18000</span><span>,</span><span> </span><span>include_rts</span><span> </span><span>=</span><span> </span><span>FALSE</span><span>)</span><span>
</span><span>badass</span><span> </span><span>&lt;-</span><span> </span><span>dplyr</span><span>::</span><span>filter</span><span>(</span><span>badass</span><span>,</span><span> </span><span>is_quote_status</span><span>,</span><span> </span><span>quote_status_id</span><span> </span><span>==</span><span> </span><span>question_tweet</span><span>)</span><span>
</span><span>badass</span><span> </span><span>&lt;-</span><span> </span><span>dplyr</span><span>::</span><span>mutate</span><span>(</span><span>badass</span><span>,</span><span> </span><span>text</span><span> </span><span>=</span><span> </span><span>stringr</span><span>::</span><span>str_replace</span><span>(</span><span>text</span><span>,</span><span> </span><span>&quot;https://t\\.co/.*$&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>))</span><span>
</span><span>badass</span><span> </span><span>&lt;-</span><span> </span><span>dplyr</span><span>::</span><span>mutate</span><span>(</span><span>badass</span><span>,</span><span> </span><span>text</span><span> </span><span>=</span><span> </span><span>trimws</span><span>(</span><span>text</span><span>))</span><span>
</span><span>readr</span><span>::</span><span>write_csv</span><span>(</span><span>badass</span><span>,</span><span> </span><span>path</span><span> </span><span>=</span><span> </span><span>&quot;data/2017-12-03-badderb_badass.csv&quot;</span><span>)</span><span>
</span></code></pre>
</div>
</div>
<p>I obtained 15653 tweets. Not bad!</p>
<div>
<div>
<pre><code><span>library</span><span>(</span><span>&quot;magrittr&quot;</span><span>)</span><span>
</span><span>set.seed</span><span>(</span><span>20171015</span><span>)</span><span>
</span><span>indices</span><span> </span><span>&lt;-</span><span> </span><span>sample.int</span><span>(</span><span>n</span><span> </span><span>=</span><span> </span><span>nrow</span><span>(</span><span>badass</span><span>),</span><span> </span><span>size</span><span> </span><span>=</span><span> </span><span>7</span><span>)</span><span>
</span><span>badass</span><span>$</span><span>text</span><span>[</span><span>indices</span><span>]</span><span>
</span></code></pre>
</div>
</div>
<div>
<div>
<pre><code>## [1] &quot;Carmina Barrios&quot;                                                                                                                                                                                                      
## [2] &quot;Anyone&quot;                                                                                                                                                                                                               
## [3] &quot;Shirley Temple&quot;                                                                                                                                                                                                       
## [4] &quot;So a lot of people have shared some bad ass women in repsonse to the tweet below. I hope someone is compiling those responses for one kick ass book.&quot;                                                                 
## [5] &quot;Mary Bowers was a slave with a photographic memory who pretended to be \&quot;slow-witted\&quot; in order to spy on confederate soldiers in the house worked, and pass intel she gathered to Union forces during the Civil War.&quot;
## [6] &quot;Ramona Quimby, age 8&quot;                                                                                                                                                                                                 
## [7] &quot;Snow White. Sleeping Beauty. Cinderella, Elsa, Ariel bec the category example is obvs mediocre Disney caricatures allowed by the patriarchy, right?&quot;
</code></pre>
</div>
</div>
<h1>Unnamed badder b…..s: your mother and grand-mother</h1>
<p>Out of 15653, 570 contained the word “mother” – I haven’t looked for the word “mum” and haven’t checked for the fact that it is someone from the family of the tweet author. Here a few of the personal stories (or not) identified with this quick and dirty method.</p>
<div>
<div>
<pre><code><span>set.seed</span><span>(</span><span>20171015</span><span>)</span><span>
</span><span>mothers</span><span> </span><span>&lt;-</span><span> </span><span>dplyr</span><span>::</span><span>filter</span><span>(</span><span>badass</span><span>,</span><span> </span><span>stringr</span><span>::</span><span>str_detect</span><span>(</span><span>text</span><span>,</span><span> </span><span>&quot;mother&quot;</span><span>))</span><span>
</span><span>indices</span><span> </span><span>&lt;-</span><span> </span><span>sample.int</span><span>(</span><span>n</span><span> </span><span>=</span><span> </span><span>15</span><span>)</span><span>
</span><span>mothers</span><span>$</span><span>text</span><span>[</span><span>indices</span><span>]</span><span>
</span></code></pre>
</div>
</div>
<div>
<div>
<pre><code>##  [1] &quot;My grandmother struggled through poverty her entire life, in a family prone to depression, addiction, and suicide. She had so many Caesarian sections that when she reached menopause she didnt have a belly button anymore.&quot;                                                       
##  [2] &quot;Mom married my dad. He had been married 2X before with a total of 10 kids. His first wife left him and the kid.  2nd wife died after their divorce.  He had custody of all 10, judge asked my mother if she would take them in, she did. Raised his 10 and had 3 with dad. 13 in all&quot;
##  [3] &quot;Each of my grandmothers raised 11 kids </code></pre></div></div>