27/8/2020

Summary

Data Exploration

The data was build in the English language and the model can be extrapolated to other languages - The Blog data has:

## Warning: package 'tidytext' was built under R version 4.0.2
## Warning in readLines("badwords.txt"): incomplete final line found on
## 'badwords.txt'
##                                                                                                                                                                                                                                                                                                                                                                                                                                                  text
## 1                                                                                                                                                                                                                                                                                             In honour of the very successful visit from Kevin Crossley-Holland we have five copies to give away (in the UK only) of his novel, A Bracelet of Bones.
## 2 Back to the Soul Mass Transit System and Smith, in a brown suit from the remainders at Debenhams, completely missing miming his spoken first line until after it's been and gone. He doesn't get a lot better at it, especially when joined by an invisible female singer. Maybe it's Barbra Dickson. After that it's Kid's call to duty in the new Short Awkward Chat Before The Number One, this week Elkie Brooks making sure to call Kid "Kid".
## 3                                                                                                                                           The star of â\200œThe Middleâ\200\235 and â\200œEverybody Loves Raymondâ\200\235 pulled an Alec Baldwin and temporarily deleted her Twitter account after siding with Limbaughâ\200\231s criticisms of Georgetown law student Sandra Fluke last week via a series of barbed tweets. She returned on Monday to apologize to Fluke.
## 4                                                                                                                                                                                                                                                                                                                                                     There I stood in the presence of God, uncovered and completely exposed. I had to make a choice.
## 5                                                                                                                                                                                                                                                              Ad came up with a good song last night. A lyric and some chords and a bass riff. That's what it takes. 15 minutes later we've got a stomping classic Magic Ship song on our hands. Oi!
## 6                                                                                                                                                                                                                                                                                                                                  I feared that any shade in the gray/brown family would clash with the taupe walls (it would also be a bit boring).
##   source
## 1  blogs
## 2  blogs
## 3  blogs
## 4  blogs
## 5  blogs
## 6  blogs

BiGrams and TriGrams

## Saving 7.5 x 4.5 in image
## Warning: `data_frame()` is deprecated as of tibble 1.1.0.
## Please use `tibble()` instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_warnings()` to see where this warning was generated.
## # A tibble: 14,038 x 2
##    ngram   number
##    <chr>    <int>
##  1 bigrams   5940
##  2 bigrams   5398
##  3 bigrams   3228
##  4 bigrams   2474
##  5 bigrams   2442
##  6 bigrams   2276
##  7 bigrams   1996
##  8 bigrams   1984
##  9 bigrams   1879
## 10 bigrams   1562
## # ... with 14,028 more rows

## Saving 7.5 x 4.5 in image

## Saving 7.5 x 4.5 in image

## Saving 7.5 x 4.5 in image

## Saving 7.5 x 4.5 in image

## Saving 7.5 x 4.5 in image

## Saving 7.5 x 4.5 in image

Bi Grams

## Saving 7.5 x 4.5 in image