{
  "_id": "6a23e97ca1338011a79ebe2b",
  "Package": "stylest2",
  "Title": "Estimating Speakers of Texts",
  "Version": "0.1",
  "Authors@R": "c(person(\"Christian\", \"Baehr\", role = c(\"aut\", \"cre\", \"cph\"), email=\"cbaehr@princeton.edu\"),\nperson(\"Arthur\", \"Spirling\", role=c(\"aut\", \"cph\")),\nperson(\"Leslie\", \"Huang\", role=c(\"aut\")))",
  "Description": "Estimates the authors or speakers of texts. Methods\ndeveloped in Huang, Perry, and Spirling (2020)\n<doi:10.1017/pan.2019.49>. The model is built on a Bayesian\nframework in which the distinctiveness of each speaker is\ndefined by how different, on average, the speaker's terms are\nto everyone else in the corpus of texts. An optional\ncross-validation method is implemented to select the subset of\nterms that generate the most accurate speaker predictions. Once\na set of terms is selected, the model can be estimated. Speaker\ndistinctiveness and term influence can be recovered from\nparameters in the model using package functions. Once fitted,\nthe model can be used to predict authorship of new texts.",
  "License": "GPL-3",
  "Collate": "'stylest2_select_vocab.R' 'stylest2_fit.R'\n'stylest2_predict.R' 'data.R' 'stylest2.R'",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr, rmarkdown",
  "RoxygenNote": "7.3.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-06 09:30:39 UTC",
    "User": "root"
  },
  "Author": "Christian Baehr [aut, cre, cph], Arthur Spirling [aut, cph],\nLeslie Huang [aut]",
  "Maintainer": "Christian Baehr <cbaehr@princeton.edu>",
  "Config/pak/sysreqs": "libicu-dev libxml2-dev",
  "Repository": "https://cbaehr.r-universe.dev",
  "Date/Publication": "2024-03-24 02:34:09 UTC",
  "RemoteUrl": "https://github.com/cran/stylest2",
  "RemoteRef": "HEAD",
  "RemoteSha": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
  "MD5sum": "8410329b12edd73ae7f8745b79cca9dc",
  "_user": "cbaehr",
  "_type": "src",
  "_file": "stylest2_0.1.tar.gz",
  "_fileid": "1faf78a86b3942c20e8d0fd253e32c0d0cf83b2e528da414927d7fa7f15161dc",
  "_filesize": 142046,
  "_sha256": "1faf78a86b3942c20e8d0fd253e32c0d0cf83b2e528da414927d7fa7f15161dc",
  "_created": "2026-06-06T09:30:39.000Z",
  "_published": "2026-06-06T09:33:48.735Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79867696016,
      "time": 160,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7453279395"
    },
    {
      "job": 79867696022,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7453278715"
    },
    {
      "job": 79867696015,
      "time": 145,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7453274990"
    },
    {
      "job": 79867696010,
      "time": 145,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7453274486"
    },
    {
      "job": 79867509500,
      "time": 210,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7453261962"
    },
    {
      "job": 79867696020,
      "time": 120,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7453275063"
    },
    {
      "job": 79867696024,
      "time": 113,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7453274353"
    },
    {
      "job": 79867696023,
      "time": 101,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7453273163"
    },
    {
      "job": 79867696025,
      "time": 89,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7453272026"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/stylest2",
  "_commit": {
    "id": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
    "author": "Christian Baehr <cbaehr@princeton.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1\n",
    "time": 1711247649
  },
  "_maintainer": {
    "name": "Christian Baehr",
    "email": "cbaehr@princeton.edu",
    "login": "cbaehr",
    "twitter": "@christian_baehr",
    "description": "",
    "uuid": 25487834
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "quanteda",
      "role": "Imports"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "cbaehr",
      "count": 1,
      "uuid": 25487834
    }
  ],
  "_userbio": {
    "uuid": 25487834,
    "type": "user",
    "name": "Christian Baehr"
  },
  "_downloads": {
    "count": 128,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stylest2"
  },
  "_searchresults": 8,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/stylest2.html",
    "manual.pdf"
  ],
  "_realowner": "cbaehr",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1",
      "date": "2024-03-23"
    }
  ],
  "_exports": [
    "stylest2_fit",
    "stylest2_predict",
    "stylest2_select_vocab",
    "stylest2_terms"
  ],
  "_datasets": [
    {
      "name": "novels",
      "title": "Excerpts from English novels",
      "object": "novels",
      "file": "novels.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "title",
        "author",
        "text"
      ],
      "rows": 21,
      "table": true,
      "tojson": true
    },
    {
      "name": "novels_dfm",
      "title": "Novel excerpts in quanteda dfm object",
      "object": "novels_dfm",
      "file": "novels_dfm.RData",
      "class": [
        "dfm"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "novels",
      "title": "Excerpts from English novels",
      "topics": [
        "novels"
      ]
    },
    {
      "page": "novels_dfm",
      "title": "Novel excerpts in quanteda dfm object",
      "topics": [
        "novels_dfm"
      ]
    },
    {
      "page": "stylest",
      "title": "stylest2: A package for estimating authorship of texts.",
      "topics": [
        "stylest"
      ]
    },
    {
      "page": "stylest2_fit",
      "title": "Fit speaker model to document-feature matrix",
      "topics": [
        "stylest2_fit"
      ]
    },
    {
      "page": "stylest2_predict",
      "title": "Predict authorship of texts.",
      "topics": [
        "stylest2_predict"
      ]
    },
    {
      "page": "stylest2_select_vocab",
      "title": "Cross-validation based term selection",
      "topics": [
        "stylest2_select_vocab"
      ]
    },
    {
      "page": "stylest2_terms",
      "title": "Select terms above frequency cutoff",
      "topics": [
        "stylest2_terms"
      ]
    }
  ],
  "_readme": "https://github.com/cran/stylest2/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "fastmatch",
    "ISOcodes",
    "jsonlite",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "quanteda",
    "Rcpp",
    "rlang",
    "SnowballC",
    "stopwords",
    "stringi",
    "xml2",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "stylest2-vignette.Rmd",
      "filename": "stylest2-vignette.html",
      "title": "stylest2 vignette",
      "author": "Christian Baehr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "About stylest2",
        "Installation",
        "Load the package",
        "Example: Fitting a model to English novels",
        "dfm",
        "Using stylest2_select_vocab",
        "Fitting a model",
        "Using a percentile to select terms",
        "Fitting the model: basic",
        "Fitting the model: adding custom term weights",
        "Using the model",
        "Predicting the speaker of a new text",
        "Issues"
      ],
      "created": "2024-03-24 02:34:09",
      "modified": "2024-03-24 02:34:09",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "stylest2",
  "_universes": [
    "cbaehr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1",
      "date": "2026-06-06T09:33:02.000Z",
      "distro": "noble",
      "commit": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
      "fileid": "eff1835d96193fe8403eecc66fbf2f36fa4c8e673af59b843468cd0c6207c75e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1",
      "date": "2026-06-06T09:32:59.000Z",
      "distro": "noble",
      "commit": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
      "fileid": "a4c7358088850e05006f9a6273eb291d1facf1f49b5fee54f16ec8290799fb34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1",
      "date": "2026-06-06T09:32:36.000Z",
      "commit": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
      "fileid": "a2962c04af448c09872ce99c102f356f5c8518247f2baf46e60301e1406b409c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1",
      "date": "2026-06-06T09:32:27.000Z",
      "commit": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
      "fileid": "d027fbf7f2e04a0ba5d16d05feb548eb30b0189c9c872d79f6a423dedc35f427",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1",
      "date": "2026-06-06T09:32:55.000Z",
      "commit": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
      "fileid": "7005163cf280cd49156c8d6aacb512464d27df0f3d98893ca4bf9665e0c2d59e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1",
      "date": "2026-06-06T09:32:09.000Z",
      "commit": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
      "fileid": "31c53f77311ca3ecedbd7bf4d1e501dfe13c28e7183ae39b81721199a082437c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1",
      "date": "2026-06-06T09:32:07.000Z",
      "commit": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
      "fileid": "e44b62a667e5554dd9d5fc066a8aa86d4fe3a7a474aa319f13654a82e75b81ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1",
      "date": "2026-06-06T09:31:51.000Z",
      "commit": "63f49398429d8c300048e5bf247e5f6e8ec4ac69",
      "fileid": "74c06ef7899466a24d0eb7f36004498af8eda51de7ef3adb1adcac6efd8f6dd3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cbaehr/actions/runs/27058646590"
    }
  ]
}