The Holy Bible sentiment analysis

We first make a more detailed analysis on the Holy Bible, which is the most read book in the world.
The version used here is the King James Version.

Creating a tidy table listing all words in the text:

Removing stop words, blank lines, numbers and punctuation from the text:

Arranging the words that are more frequent in absolute frequency:

Calculating the odds ratio of words appearing in Old Testament or New Testament, with correction of plus 0.5:

Showing the words that appears with higher frequency in Old Testament and New Testament, each:

Since we want to consider a larger variety of sentiments, it is used the nrc lexicon for sentiment analysis:

Calculating here the quantitative analysis of sentiments, in absolute numbers:

It is important to note that the Old Testament contains much more words than New Testament, as follows:

Due to this difference, the odds ratio of each sentiment is calculated.
An odds ratio bigger than 1 represents more appearance in the Old Testament:

The purpose is to show which sentiments are more expressed in each testament, compared to the other one.
The Old Testament has more use of: disgust, negative and anger sentiments
The New Testament have more expression of: anticipation, joy and surprise

For each sentiment, the odds ratio and confidence interval is calculated:

The analysis performed calculates the log of the odd ratios, so it is easier to notice which sentiments are more expressed in each testament: positive numbers are more frequent in the Old Testament.
A graphical visualization shows how all of these sentiments are overrepresented in one or another testament:

It is possible to visualize which words are driving more extreme sentiments like disgust or joy:

The 5 words most used to express each sentiment, for each testament, can be plotted in a graph.
Here blue symbolizes New Testament and red symbolizes Old Testament: