-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.Rmd
More file actions
52 lines (34 loc) · 1.94 KB
/
README.Rmd
File metadata and controls
52 lines (34 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
output: github_document
bibliography: inst/references.bib
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# idiolect <img src="man/figures/logo.png" align="right" height="139"/>
<!-- badges: start -->
[](https://CRAN.R-project.org/package=idiolect)
[](https://github.com/andreanini/idiolect/actions/workflows/R-CMD-check.yaml)
[](https://doi.org/10.21105/joss.07575)
<!-- badges: end -->
The `idiolect` R package is designed to provide a comprehensive suite of tools for performing comparative authorship analysis within a forensic context using the Likelihood Ratio Framework [e.g. @ishihara2021; @nini2023]. The package contains a set of authorship analysis functions that take a set of texts as input and output scores that can then be calibrated into likelihood ratios. The package is dependent on [`quanteda`](https://quanteda.io) [@benoit2018] for all Natural Language Processing functions.
## Installation
You can install `idiolect` from CRAN:
``` r
install.packages("idiolect")
```
## Workflow
The main functions contained in the package reflect the typical workflow for authorship analysis for forensic problems:
1. Input data using `create_corpus()`;
2. Optionally mask the content/topic of the texts using `contentmask()`;
3. Launch an analysis (e.g. `delta()`, `ngram_tracing()`, `impostors()`);
4. Test the performance of the method on ground truth data using `performance()`;
5. Finally, apply the method to the questioned text and generate a likelihood ratio with `calibrate_LLR()`.
Check the website and the vignette for examples.
## References