Extracts Sentiment and Sentiment-Derived Plot Arcs from Text
Overview
Extracts sentiment and sentiment-derived plot arcs from text using a variety of sentiment dictionaries conveniently packaged for consumption by R users. Implemented dictionaries include "syuzhet" (default) developed in the Nebraska Literary Lab "afinn" developed by Finn Årup Nielsen, "bing" developed by Minqing Hu and Bing Liu, and "nrc" developed by Mohammad, Saif M. and Turney, Peter D. Applicable references are available in README.md and in the documentation for the "get_sentiment" function. The package also provides a hack for implementing Stanford's coreNLP sentiment parser. The package provides several methods for plot arc normalization.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 16
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 38%
- Documented parameters
- 100%
- Return-value docs
- 81%
- Help pages citing references
- 13%
Downloads
Repository
- PRs merged (all time)
- 77%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 3
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/mjockers/syuzhet on 2026-10-18.
Dependencies
Installing syuzhet adds 26 packages (15 with compiled code, 25 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, vctrs 1.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.7Latest
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.0.6
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 1.0.42017-12-14 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 1.0.1
- RR 3.3.0 released · 2016-05-03
- 1.0.02016-04-28 · diff ↗ ·
added 8 exports
get_dct_transform, get_nrc_values, get_sent_values, get_stanford_sentiment, get_tokens, rescale, rescale_x_2, simple_plot
Show 3 earlier eventsHide 3 earlier events
- RR 3.2.0 released · 2015-04-16
- 0.2.02015-02-22
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2015-02-22
- Total releases
- 6 / 11 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 2.9 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("syuzhet")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.