Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jrdnbradford/lovecraftr
An R 📦 of H. P. Lovecraft's works 📚 for textual analysis
https://github.com/jrdnbradford/lovecraftr
digital-humanities horror horror-fiction lovecraft lovecraft-novels lovecraftian nlp r text-analysis text-mining text-processing
Last synced: 13 days ago
JSON representation
An R 📦 of H. P. Lovecraft's works 📚 for textual analysis
- Host: GitHub
- URL: https://github.com/jrdnbradford/lovecraftr
- Owner: jrdnbradford
- License: other
- Created: 2024-06-30T20:01:48.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T19:10:42.000Z (5 months ago)
- Last Synced: 2024-11-08T00:52:47.155Z (2 months ago)
- Topics: digital-humanities, horror, horror-fiction, lovecraft, lovecraft-novels, lovecraftian, nlp, r, text-analysis, text-mining, text-processing
- Language: R
- Homepage: https://jrdnbradford.github.io/lovecraftr/
- Size: 11.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# {`lovecraftr`}
[![R-CMD-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml)
[![dataset-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml)
![GitHub R package
version](https://img.shields.io/github/r-package/v/jrdnbradford/lovecraftr.png)
[![Lifecycle:
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)> The most merciful thing in the world, I think, is the inability of the
> human mind to correlate all its contents. We live on a placid island
> of ignorance in the midst of black seas of infinity, and it was not
> meant that we should voyage far. The sciences, each straining in its
> own direction, have hitherto harmed us little; but some day the
> piecing together of dissociated knowledge will open up such terrifying
> vistas of reality, and of our frightful position therein, that we
> shall either go mad from the revelation or flee from the light into
> the peace and safety of a new dark age.\-[H. P. Lovecraft](https://en.wikipedia.org/wiki/H._P._Lovecraft), *The
Call of Cthulhu*{`lovecraftr`} contains H. P. Lovecraft’s corpus as R datasets for
textual analysis. This repository contains both the raw text files and
RDA files. See the [package index
reference](https://jrdnbradford.github.io/lovecraftr/reference/index.html)
for the list of available works.## Installation
Install from [GitHub](https://github.com/jrdnbradford/lovecraftr/) using
any of the methods below.### {[`devtools`](https://devtools.r-lib.org/)}
``` r
# install.packages("devtools")
devtools::install_github("jrdnbradford/lovecraftr")
```### {[`remotes`](https://remotes.r-lib.org/)}
``` r
# install.packages("remotes")
remotes::install_github("jrdnbradford/lovecraftr")
```### {[`pak`](https://pak.r-lib.org/)}
``` r
# install.packages("pak")
pak::pkg_install("jrdnbradford/lovecraftr")
```## Usage
See the [package index
reference](https://jrdnbradford.github.io/lovecraftr/reference/index.html)
for documentation on works and usage.Once the package is loaded, character vectors of individual works can be
accessed in several ways.You can load a dataset into the environment directly using:
``` r
data(the_call_of_cthulhu)
```You can also assign a dataset to a variable:
``` r
corpus <- lovecraftcorpus |>
dplyr::filter(title == "The Call of Cthulhu") |>
head()
#> # A tibble: 6 × 2
#> title text
#>
#> 1 The Call of Cthulhu "THE CALL OF CTHULHU"
#> 2 The Call of Cthulhu ""
#> 3 The Call of Cthulhu "Of such great powers or beings there may be conceivably …
#> 4 The Call of Cthulhu "of a hugely remote period when...consciousness was manif…
#> 5 The Call of Cthulhu "shapes and forms long since withdrawn before the tide of…
#> 6 The Call of Cthulhu "humanity...forms of which poetry and legend alone have c…
```## Contributing
See [CONTRIBUTING.md](./.github/CONTRIBUTING.md).
## License
MIT. See [LICENSE.md](./LICENSE.md).
## Citation
Please cite this package if you use it.
``` r
citation("lovecraftr")
#> To cite package 'lovecraftr' in publications use:
#>
#> Bradford J (2024). _lovecraftr: H. P. Lovecraft's works, for text
#> analysis_. .
#>
#> A BibTeX entry for LaTeX users is
#>
#> @Manual{,
#> title = {lovecraftr: H. P. Lovecraft's works, for text analysis},
#> author = {Jordan Bradford},
#> year = {2024},
#> url = {https://github.com/jrdnbradford/lovecraftr/},
#> }
```