knitr::opts_chunk$set(echo = FALSE, message = FALSE,warning = FALSE)
Romeo and Juliet is a story written in about 1594-96 by William Shakespeare
It is a tragic love story where the two main characters, Romeo and Juliet, are supposed to be sworn enemies but fall in love. Due to their families’ ongoing conflict, they cannot be together, so they kill themselves because they cannot cope with being separated from one another.
The entire text is obtained from Gutenberg which it is then tidied up before sentimental analysis is performed.
For this analysis only the words from the book is used as that is only type of information able to be acquired and used from the text.
filter(sentiment_bing == “negative”)
The results are taken from 1004 words from the text as it has been tidied and removed unnecessary words or text that didnt correlate to the objective leaving only 1004 that did.
The number of positive words is displayed in this dataframe
## # A tibble: 361 × 2
## word sentiment_bing
## <chr> <chr>
## 1 advanced positive
## 2 affection positive
## 3 affection positive
## 4 affection positive
## 5 approval positive
## 6 ardent positive
## 7 ardent positive
## 8 ardent positive
## 9 bargain positive
## 10 bargain positive
## # ℹ 351 more rows
The number of negative words is displayed in this dataframe.
## # A tibble: 643 × 2
## word sentiment_bing
## <chr> <chr>
## 1 abuse negative
## 2 abuse negative
## 3 abuse negative
## 4 abuse negative
## 5 abuse negative
## 6 accidental negative
## 7 accidental negative
## 8 accidental negative
## 9 ache negative
## 10 ache negative
## # ℹ 633 more rows
#Sentiment Analysis
By using Sentimental analysis I am able to discern whether a word is positive or negative after tidying the text using more specifically sentiment_bing.
In general the story is more negative than positive as the sample of 1004 words taken has about 64% of words that are negative according to sentiment_bing, with only 34% being positive.
Thius makes sense as even reading a couple of lines of Romeo and Juliet, it becomes evident of the importance negative word in creating a solemn tone within the story especially during it’s more tragic parts.
#Next Steps
The next steps would probably be to increase the sample size and conduct more tests using the text and sentimental analysis to increase accuracy of the results.
Afterwards I plan to conclude on a more specific tone of the text using nrc from sentimental analysis taking the top three tones and deciding from that what the more specific tone of Romeo and Juliet is.
#Conclusion
Sentimental analysis provides a simple and direct way to analyzing Romeo and Juliet for the specific purpose of determining if it is a more tragic or romantic type of sotry, it does however come with the limitations of the data provided as we can see in the case of this research where the text acquired from Gutenberrg was only provided was only words from the story each with an ID number.
Overall, based on the analysis of the text Romeo and Juliet was concluded to be more of a tragedy then a romance which makes sense in a way as the original story does end in a tragedy as is the case with Shakespeares other stories.
#Selected ReferencesShakespeare, William, 1564-1616. “Shakespeare’s Tragedy of Romeo and Juliet” https://www.gutenberg.org/ebooks/47960. Retrieved June 1, 2024