- Notifications
You must be signed in to change notification settings - Fork3
idiolect: An R package for forensic authorship analysis
License
andreanini/idiolect
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Theidiolect R package is designed to provide a comprehensive suite oftools for performing comparative authorship analysis within a forensiccontext using the Likelihood Ratio Framework (e.g. Ishihara 2021; Nini2023). The package contains a set of authorship analysis functions thattake a set of texts as input and output scores that can then becalibrated into likelihood ratios. The package is dependent onquanteda (Benoit et al. 2018) for all NaturalLanguage Processing functions.
You can installidiolect from CRAN:
install.packages("idiolect")The main functions contained in the package reflect the typical workflowfor authorship analysis for forensic problems:
Input data using
create_corpus();Optionally mask the content/topic of the texts using
contentmask();Launch an analysis (e.g.
delta(),ngram_tracing(),impostors());Test the performance of the method on ground truth data using
performance();Finally, apply the method to the questioned text and generate alikelihood ratio with
calibrate_LLR().
Check the website and the vignette for examples.
Benoit, Kenneth, Kohei Watanabe, Haiyan Wang, Paul Nulty, Adam Obeng,Stefan Müller, and Akitaka Matsuo. 2018. “Quanteda: An r Package for theQuantitative Analysis of Textual Data.”Journal of Open SourceSoftware 3 (30).https://doi.org/10.21105/joss.00774.
Ishihara, Shunichi. 2021. “Score-Based Likelihood Ratios for LinguisticText Evidence with a Bag-of-Words Model.”Forensic ScienceInternational 327: 110980.https://doi.org/10.1016/j.forsciint.2021.110980.
Nini, Andrea. 2023.A Theory of Linguistic Individuality for AuthorshipAnalysis. Elements in Forensic Linguistics. Cambridge, UK: CambridgeUniversity Press.
About
idiolect: An R package for forensic authorship analysis
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
