syuzhet

An R package for the extraction of sentiment and sentiment-based plot arcs from text

https://github.com/mjockers/syuzhet

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 12 committers (8.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.6%) to scientific vocabulary

Keywords from Contributors

regular-expression tokenizer tidy-data tidyverse package-creation
Last synced: 11 months ago · JSON representation

Repository

An R package for the extraction of sentiment and sentiment-based plot arcs from text

Basic Info
  • Host: GitHub
  • Owner: mjockers
  • Language: HTML
  • Default Branch: master
  • Size: 41.6 MB
Statistics
  • Stars: 338
  • Watchers: 29
  • Forks: 72
  • Open Issues: 9
  • Releases: 3
Created over 11 years ago · Last pushed almost 3 years ago
Metadata Files
Readme

README.md

Syuzhet

An R package for the extraction of sentiment and sentiment-based plot arcs from text.

The name "Syuzhet" comes from the Russian Formalists Victor Shklovsky and Vladimir Propp who divided narrative into two components, the "fabula" and the "syuzhet." Syuzhet refers to the "device" or technique of a narrative whereas fabula is the chronological order of events. Syuzhet, therefore, is concerned with the manner in which the elements of the story (fabula) are organized (syuzhet).

The Syuzhet package attempts to reveal the latent structure of narrative by means of sentiment analysis. Instead of detecting shifts in the topic or subject matter of the narrative (as Ben Schmidt has done), the Syuzhet package reveals the emotional shifts that serve as proxies for the narrative movement between conflict and conflict resolution. This was an idea inspired by the late Kurt Vonnegut in an essay titled "Here's a Lesson in Creative Writing" in his collection A Man Without A Country ( Random House, 2007). A lecture Vonnegut gave on this subject is available via youTube

Thanks to Lincoln Mullen for early feedback on this package (see http://rpubs.com/lmullen/58030).

Installation

This package is now available on CRAN (http://cran.r-project.org/web/packages/syuzhet/).

R install.packages("syuzhet") You can install the most current development version from gitHub using the devtools package:

```R

install.packages("devtools")

devtools::install_github("mjockers/syuzhet") ```

References

Syuzhet incorporates four sentiment lexicons:

The default "Syuzhet" lexicon was developed in the Nebraska Literary Lab under the direction of Matthew L. Jockers

The "afinn" lexicon was developed by Finn Arup Nielsen as the AFINN WORD DATABASE See: See http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6010 The AFINN database of words is copyright protected and distributed under "Open Database License (ODbL) v1.0" http://www.opendatacommons.org/licenses/odbl/1.0/ or a similar copyleft license.

The "bing" lexicon was developed by Minqing Hu and Bing Liu as the OPINION LEXICON See: http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html

The "nrc" lexicon was developed by Mohammad, Saif M. and Turney, Peter D. as the NRC EMOTION LEXICON.
See: http://saifmohammad.com/WebPages/lexicons.html The NRC EMOTION LEXICON is released under the following terms of use: Terms of use:

  1. This lexicon can be used freely for research purposes.
  2. The papers listed below provide details of the creation and use of the lexicon. If you use a lexicon, then please cite the associated papers.
  3. If interested in commercial use of the lexicon, send email to the contact.
  4. If you use the lexicon in a product or application, then please credit the authors and NRC appropriately. Also, if you send us an email, we will be thrilled to know about how you have used the lexicon.
  5. National Research Council Canada (NRC) disclaims any responsibility for the use of the lexicon and does not provide technical support. However, the contact listed above will be happy to respond to queries and clarifications.
  6. Rather than redistributing the data, please direct interested parties to this page: http://www.purl.com/net/lexicons

-- Crowdsourcing a Word-Emotion Association Lexicon, Saif Mohammad and Peter Turney, To Appear in Computational Intelligence, Wiley Blackwell Publishing Ltd.

-- Tracking Sentiment in Mail: How Genders Differ on Emotional Axes, Saif Mohammad and Tony Yang, In Proceedings of the ACL 2011 Workshop on ACL 2011 Workshop on Computational Approaches to Subjectivity and Sentiment Analysis (WASSA), June 2011, Portland, OR. Paper (pdf)

-- From Once Upon a Time to Happily Ever After: Tracking Emotions in Novels and Fairy Tales, Saif Mohammad, In Proceedings of the ACL 2011 Workshop on Language Technology for Cultural Heritage, Social Sciences, and Humanities (LaTeCH), June 2011, Portland, OR. Paper

-- Emotions Evoked by Common Words and Phrases: Using Mechanical Turk to Create an Emotion Lexicon", Saif Mohammad and Peter Turney, In Proceedings of the NAACL-HLT 2010 Workshop on Computational Approaches to Analysis and Generation of Emotion in Text, June 2010, LA, California.

Links to the papers are available here: http://www.purl.org/net/NRCemotionlexicon

CONTACT INFORMATION Saif Mohammad Research Officer, National Research Council Canada email: saif.mohammad@nrc-cnrc.gc.ca phone: +1-613-993-0620

Owner

  • Name: Matthew L. Jockers
  • Login: mjockers
  • Kind: user
  • Location: Pullman, WA
  • Company: Washington State University

GitHub Events

Total
  • Watch event: 4
  • Issue comment event: 1
Last Year
  • Watch event: 4
  • Issue comment event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 139
  • Total Committers: 12
  • Avg Commits per committer: 11.583
  • Development Distribution Score (DDS): 0.18
Past Year
  • Commits: 8
  • Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
mjockers m****s@g****m 114
Lincoln Mullen l****n@l****m 7
Philip Bulsink b****p@g****m 4
Tommy M. McGuire m****e@c****t 3
ChrisMuir c****A@g****m 2
Matthew Jockers m****s@C****l 2
Matthew Jockers m****s@w****u 2
Tyler t****r@g****m 1
Tyler Rinker t****r@c****m 1
amrrs a****s@o****m 1
ironholds i****s@g****m 1
Hadley Wickham h****m@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 33
  • Total pull requests: 13
  • Average time to close issues: 4 months
  • Average time to close pull requests: 3 months
  • Total issue authors: 29
  • Total pull request authors: 10
  • Average comments per issue: 2.82
  • Average comments per pull request: 1.08
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • lmullen (3)
  • quinnanya (2)
  • trinker (2)
  • stefannisch (1)
  • lisagy (1)
  • Nashev (1)
  • danielgandolfi (1)
  • fronoso (1)
  • cstubben (1)
  • vbomiv (1)
  • ktdesignbox (1)
  • TerencePatrick (1)
  • AdamWeishaupt (1)
  • bmschmidt (1)
  • M-Colley (1)
Pull Request Authors
  • lmullen (3)
  • trinker (2)
  • Ironholds (1)
  • pbulsink (1)
  • amrrs (1)
  • denrou (1)
  • hadley (1)
  • miserman (1)
  • ChrisMuir (1)
  • tmmcguire (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • cran 6,523 last-month
  • Total docker downloads: 863
  • Total dependent packages: 10
    (may contain duplicates)
  • Total dependent repositories: 15
    (may contain duplicates)
  • Total versions: 11
  • Total maintainers: 1
proxy.golang.org: github.com/mjockers/syuzhet
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 12 months ago
cran.r-project.org: syuzhet

Extracts Sentiment and Sentiment-Derived Plot Arcs from Text

  • Versions: 6
  • Dependent Packages: 8
  • Dependent Repositories: 15
  • Downloads: 6,523 Last month
  • Docker Downloads: 863
Rankings
Forks count: 0.9%
Stargazers count: 1.2%
Downloads: 3.5%
Dependent packages count: 6.1%
Average: 7.2%
Dependent repos count: 7.4%
Docker downloads count: 24.2%
Maintainers (1)
Last synced: 12 months ago
conda-forge.org: r-syuzhet
  • Versions: 2
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent packages count: 19.5%
Stargazers count: 19.8%
Forks count: 19.8%
Average: 23.3%
Dependent repos count: 34.0%
Last synced: 12 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • NLP * imports
  • dplyr * imports
  • dtt * imports
  • graphics * imports
  • rlang * imports
  • stats * imports
  • textshape >= 1.3.0 imports
  • tidyr * imports
  • zoo * imports
  • devtools * suggests
  • knitr * suggests
  • pander * suggests
  • parallel * suggests
  • readxl * suggests
  • rmarkdown * suggests
  • stringr * suggests
  • testthat >= 0.9.1 suggests