https://github.com/quadrama/dramaanalysis
An R package for analysis of dramatic texts
https://github.com/quadrama/dramaanalysis
corpus-linguistics digital-humanities drama dramatic-texts r statistics
Last synced: about 1 year ago
JSON representation
An R package for analysis of dramatic texts
- Host: GitHub
- URL: https://github.com/quadrama/dramaanalysis
- Owner: quadrama
- License: gpl-3.0
- Created: 2016-07-27T07:17:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T16:27:43.000Z (over 3 years ago)
- Last Synced: 2025-04-05T02:35:11.593Z (about 1 year ago)
- Topics: corpus-linguistics, digital-humanities, drama, dramatic-texts, r, statistics
- Language: R
- Homepage:
- Size: 36.3 MB
- Stars: 15
- Watchers: 1
- Forks: 2
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://cran.r-project.org/package=DramaAnalysis)
[](https://github.com/quadrama/DramaAnalysis/releases/tag/v3.0.2)
[](https://travis-ci.org/quadrama/DramaAnalysis)
[](https://zenodo.org/badge/latestdoi/64286398)
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
[](https://gitter.im/quadrama/DramaAnalysis?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
# DramaAnalysis with R
This package contains a number of functions to support the analysis of dramatic texts.
## Features
- Summary statistics about the number of words and utterances per character
- Statistics about word use from a dictionary per character
- Support for stylometric analyses by character or text
- Generation of a report for a dramatic text
- Reads in preprocessed texts
## Example
```r
# loads a specific, pre-packaged play
data(rksp.0)
# calculates standard stats about a character
charStat <- characterStatistics(rksp.0)
# fix character names
charStat <- characterNames(charStat, rksp.0)
# plot them as a bar plot
barplot(charStat)
```
# Requirements
DramaAnalysis works on Mac OS X, Windows 10 and Linuxes, and requires R 3.3 or later.
# Installation
```R
# installation from CRAN
install.packages("DramaAnalysis")
# Install newest development version, requires devtools to be installed
devtools::install_github("quadrama/DramaAnalysis", ref="develop/3.x")
```
# Usage and Howto
Please refer to the [tutorial](https://quadrama.github.io/DramaAnalysis/tutorial/3/).