{
  "_id": "6a103b75acfb0bcc41c9b7f4",
  "Package": "quanteda.textmodels",
  "Type": "Package",
  "Title": "Scaling Models and Classifiers for Textual Data",
  "Version": "0.9.10",
  "Description": "Scaling models and classifiers for sparse matrix objects\nrepresenting textual data in the form of a document-feature\nmatrix.  Includes original implementations of 'Laver',\n'Benoit', and Garry's (2003) <doi:10.1017/S0003055403000698>,\n'Wordscores' model, the Perry and 'Benoit' (2017)\n<doi:10.48550/arXiv.1710.08963> class affinity scaling model,\nand the 'Slapin' and 'Proksch' (2008)\n<doi:10.1111/j.1540-5907.2008.00338.x> 'wordfish' model, as\nwell as methods for correspondence analysis, latent semantic\nanalysis, and fast Naive Bayes and linear 'SVMs' specially\ndesigned for sparse textual data.",
  "Authors@R": "c( \nperson(\"Kenneth\", \"Benoit\", email = \"kbenoit@quanteda.org\", role = c(\"cre\", \"aut\", \"cph\"), comment = c(ORCID = \"0000-0002-0797-564X\")),\nperson(\"Kohei\", \"Watanabe\", email = \"watanabe.kohei@gmail.com\", role = \"aut\", comment = c(ORCID = \"0000-0001-6519-5265\")),\nperson(\"Haiyan\", \"Wang\", email = \"whyinsa@yahoo.com\", role = \"aut\", comment = c(ORCID = \"0000-0003-4992-4311\")),\nperson(\"Patrick O.\", \"Perry\", email = \"patperry@gmail.com\", role = \"aut\", comment = c(ORCID = \"0000-0001-7460-127X\")),\nperson(\"Benjamin\", \"Lauderdale\", email = \"b.e.lauderdale@lse.ac.uk\", role = \"aut\", comment = c(ORCID = \"0000-0003-3090-0969\")),\nperson(\"Johannes\", \"Gruber\", email = \"JohannesB.Gruber@gmail.com\", role = \"aut\", comment = c(ORCID = \"0000-0001-9177-1772\")),\nperson(\"William\", \"Lowe\", email = \"lowe@hertie-school.org\", role = \"aut\", comment = c(ORCID = \"0000-0002-1549-6163\")),\nperson(\"Vikas\", \"Sindhwani\", email = \"vikas.sindhwani@gmail.com\", role = \"cph\",\ncomment = \"authored svmlin C++ source code\"),\nperson(\"European Research Council\", role = \"fnd\", comment = \"ERC-2011-StG 283794-QUANTESS\")\n)",
  "URL": "https://github.com/quanteda/quanteda.textmodels",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Language": "en-GB",
  "RoxygenNote": "7.3.2",
  "Roxygen": "list(markdown = TRUE)",
  "Collate": "'RcppExports.R' 'quanteda.textmodels-package.R'\n'data-documentation.R' 'textmodel-methods.R'\n'textmodel_affinity.R' 'textmodel_ca.R' 'textmodel_lsa.R'\n'textmodel_lr.R' 'textmodel_nb.R' 'textmodel_svmlin.R'\n'textmodel_wordfish.R' 'textmodel_wordscores.R'\n'textplot_influence.R' 'utils.R'",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev libxml2-dev",
  "Repository": "https://quanteda.r-universe.dev",
  "Date/Publication": "2025-02-10 19:36:45 UTC",
  "RemoteUrl": "https://github.com/quanteda/quanteda.textmodels",
  "RemoteRef": "HEAD",
  "RemoteSha": "77a137ade914962aaa2a4ac773f8438eda5951f3",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-11 11:14:11 UTC",
    "User": "root"
  },
  "Author": "Kenneth Benoit [cre, aut, cph] (ORCID:\n<https://orcid.org/0000-0002-0797-564X>),\nKohei Watanabe [aut] (ORCID: <https://orcid.org/0000-0001-6519-5265>),\nHaiyan Wang [aut] (ORCID: <https://orcid.org/0000-0003-4992-4311>),\nPatrick O. Perry [aut] (ORCID: <https://orcid.org/0000-0001-7460-127X>),\nBenjamin Lauderdale [aut] (ORCID:\n<https://orcid.org/0000-0003-3090-0969>),\nJohannes Gruber [aut] (ORCID: <https://orcid.org/0000-0001-9177-1772>),\nWilliam Lowe [aut] (ORCID: <https://orcid.org/0000-0002-1549-6163>),\nVikas Sindhwani [cph] (authored svmlin C++ source code),\nEuropean Research Council [fnd] (ERC-2011-StG 283794-QUANTESS)",
  "Maintainer": "Kenneth Benoit <kbenoit@quanteda.org>",
  "MD5sum": "369267e38fdeeae0cfd571d62b234247",
  "_user": "quanteda",
  "_type": "src",
  "_file": "quanteda.textmodels_0.9.10.tar.gz",
  "_fileid": "bd13111c3a8053508cafe6ed5e513f3d506f5d9383e8b57bbe8c2b0f0de33d5f",
  "_filesize": 3197797,
  "_sha256": "bd13111c3a8053508cafe6ed5e513f3d506f5d9383e8b57bbe8c2b0f0de33d5f",
  "_created": "2026-05-11T11:14:11.000Z",
  "_published": "2026-05-22T11:18:13.679Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77368878671,
      "time": 227,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "6917041115"
    },
    {
      "job": 77368878423,
      "time": 240,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6917045432"
    },
    {
      "job": 77368878881,
      "time": 237,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6917044840"
    },
    {
      "job": 77368878844,
      "time": 244,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6917048418"
    },
    {
      "job": 77368879358,
      "time": 125,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6917009466"
    },
    {
      "job": 77368878460,
      "time": 364,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6917083256"
    },
    {
      "job": 77368878340,
      "time": 129,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6917010688"
    },
    {
      "job": 77368878308,
      "time": 255,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6917050131"
    },
    {
      "job": 77368878072,
      "time": 408,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6916968496"
    },
    {
      "job": 77368877922,
      "time": 144,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159213687"
    },
    {
      "job": 77368878440,
      "time": 180,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6917026229"
    },
    {
      "job": 77368878742,
      "time": 211,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6917036342"
    },
    {
      "job": 77368878787,
      "time": 178,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6917025658"
    }
  ],
  "_buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/quanteda/quanteda.textmodels",
  "_commit": {
    "id": "77a137ade914962aaa2a4ac773f8438eda5951f3",
    "author": "Kenneth Benoit <kbenoit@KB-MacBook-Pro-14.local>",
    "committer": "Kenneth Benoit <kbenoit@KB-MacBook-Pro-14.local>",
    "message": "Add macOS\n",
    "time": 1739216205
  },
  "_maintainer": {
    "name": "Kenneth Benoit",
    "email": "kbenoit@quanteda.org",
    "login": "kbenoit",
    "bluesky": "@kenbenoit.bsky.social",
    "orcid": "0000-0002-0797-564X",
    "twitter": "@kenbenoit",
    "uuid": 2182246
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.0",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "version": ">= 0.7.600.1.0",
      "role": "LinkingTo"
    },
    {
      "package": "quanteda",
      "role": "LinkingTo"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.2",
      "role": "Imports"
    },
    {
      "package": "quanteda",
      "version": ">= 4.0.0",
      "role": "Imports"
    },
    {
      "package": "RSpectra",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.12",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "ca",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "fastNaiveBayes",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lsa",
      "role": "Suggests"
    },
    {
      "package": "microbenchmark",
      "role": "Suggests"
    },
    {
      "package": "naivebayes",
      "role": "Suggests"
    },
    {
      "package": "quanteda.textplots",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "quanteda",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 46,
  "_contributors": [
    {
      "user": "kbenoit",
      "count": 122,
      "uuid": 2182246
    },
    {
      "user": "koheiw",
      "count": 21,
      "uuid": 6572963
    },
    {
      "user": "vriezer",
      "count": 2,
      "uuid": 36228125
    }
  ],
  "_userbio": {
    "uuid": 34347233,
    "type": "organization",
    "name": "Quanteda Initiative"
  },
  "_downloads": {
    "count": 1733,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/quanteda.textmodels"
  },
  "_mentions": 15,
  "_devurl": "https://github.com/quanteda/quanteda.textmodels",
  "_searchresults": 522,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/quanteda.textmodels.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/quanteda/quanteda.textmodels",
  "_realowner": "quanteda",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.9.0",
      "date": "2020-02-26"
    },
    {
      "version": "0.9.1",
      "date": "2020-03-13"
    },
    {
      "version": "0.9.2",
      "date": "2020-12-11"
    },
    {
      "version": "0.9.3",
      "date": "2021-03-08"
    },
    {
      "version": "0.9.4",
      "date": "2021-04-06"
    },
    {
      "version": "0.9.5",
      "date": "2022-08-29"
    },
    {
      "version": "0.9.5-1",
      "date": "2022-10-04"
    },
    {
      "version": "0.9.6",
      "date": "2023-03-22"
    },
    {
      "version": "0.9.7",
      "date": "2024-04-11"
    },
    {
      "version": "0.9.8",
      "date": "2024-08-29"
    },
    {
      "version": "0.9.9",
      "date": "2024-09-03"
    },
    {
      "version": "0.9.10",
      "date": "2025-02-10"
    }
  ],
  "_exports": [
    "affinity",
    "as.coefficients_textmodel",
    "as.statistics_textmodel",
    "as.summary.textmodel",
    "coefficients.textmodel_ca",
    "coefficients.textmodel_lsa",
    "coefficients.textmodel_wordfish",
    "textmodel_affinity",
    "textmodel_ca",
    "textmodel_lr",
    "textmodel_lsa",
    "textmodel_nb",
    "textmodel_svmlin",
    "textmodel_wordfish",
    "textmodel_wordscores",
    "textplot_influence"
  ],
  "_datasets": [
    {
      "name": "data_corpus_dailnoconf1991",
      "title": "Confidence debate from 1991 Irish Parliament",
      "object": "data_corpus_dailnoconf1991",
      "class": [
        "corpus",
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "data_corpus_EPcoaldebate",
      "title": "Crowd-labelled sentence corpus from a 2010 EP debate on coal subsidies",
      "object": "data_corpus_EPcoaldebate",
      "class": [
        "corpus",
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "data_corpus_irishbudget2010",
      "title": "Irish budget speeches from 2010",
      "object": "data_corpus_irishbudget2010",
      "class": [
        "corpus",
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "data_corpus_moviereviews",
      "title": "Movie reviews with polarity from Pang and Lee (2004)",
      "object": "data_corpus_moviereviews",
      "class": [
        "corpus",
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "data_corpus_dailnoconf1991",
      "title": "Confidence debate from 1991 Irish Parliament",
      "topics": [
        "data_corpus_dailnoconf1991"
      ]
    },
    {
      "page": "data_corpus_EPcoaldebate",
      "title": "Crowd-labelled sentence corpus from a 2010 EP debate on coal subsidies",
      "topics": [
        "data_corpus_EPcoaldebate"
      ]
    },
    {
      "page": "data_corpus_irishbudget2010",
      "title": "Irish budget speeches from 2010",
      "topics": [
        "data_corpus_irishbudget2010"
      ]
    },
    {
      "page": "data_corpus_moviereviews",
      "title": "Movie reviews with polarity from Pang and Lee (2004)",
      "topics": [
        "data_corpus_moviereviews"
      ]
    },
    {
      "page": "textmodel_affinity",
      "title": "Class affinity maximum likelihood text scaling model",
      "topics": [
        "textmodel_affinity"
      ]
    },
    {
      "page": "textmodel_ca",
      "title": "Correspondence analysis of a document-feature matrix",
      "topics": [
        "textmodel_ca"
      ]
    },
    {
      "page": "textmodel_lr",
      "title": "Logistic regression classifier for texts",
      "topics": [
        "textmodel_lr"
      ]
    },
    {
      "page": "textmodel_lsa",
      "title": "Latent Semantic Analysis",
      "topics": [
        "textmodel_lsa"
      ]
    },
    {
      "page": "textmodel_nb",
      "title": "Naive Bayes classifier for texts",
      "topics": [
        "textmodel_nb"
      ]
    },
    {
      "page": "textmodel_wordfish",
      "title": "Wordfish text model",
      "topics": [
        "textmodel_wordfish"
      ]
    },
    {
      "page": "textmodel_wordscores",
      "title": "Wordscores text model",
      "topics": [
        "textmodel_wordscores"
      ]
    }
  ],
  "_readme": "https://github.com/quanteda/quanteda.textmodels/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "fastmatch",
    "foreach",
    "glmnet",
    "ISOcodes",
    "iterators",
    "jsonlite",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "quanteda",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "RSpectra",
    "shape",
    "SnowballC",
    "stopwords",
    "stringi",
    "survival",
    "xml2",
    "yaml"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "textmodel_performance.Rmd",
      "filename": "textmodel_performance.html",
      "title": "textmodel Performance Comparisons",
      "author": "Kenneth Benoit",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Naive Bayes",
        "References"
      ],
      "created": "2020-03-11 07:37:35",
      "modified": "2024-04-10 19:18:29",
      "commits": 5
    }
  ],
  "_score": 9.096348152117416,
  "_indexed": true,
  "_nocasepkg": "quanteda.textmodels",
  "_universes": [
    "quanteda",
    "kbenoit"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.10",
      "date": "2026-05-11T11:17:35.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "e4f8f09e0df76046e0486d5045c9fc268240be3fc64976349bb3b3ecde3cfd5d",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.10",
      "date": "2026-05-11T11:17:45.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "0b98f95eafbe7051e94d7f4b85d70eb18d4a18357527fb6399251e3c75551f78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.10",
      "date": "2026-05-11T11:17:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "610fcab094f6480fb7ac3efc10ff3c0f80e5b31254fb03b763b8fea8cd3c0be2",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.10",
      "date": "2026-05-11T11:17:59.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "003804ac3228a5625a75f5f30308c0d74cdd7aee5137c99c231a01445a48ab84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.10",
      "date": "2026-05-11T11:16:16.000Z",
      "arch": "aarch64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "e04b7f0316a682b5dab5a977d6664691a01738cbfaa272f011919de86d1da1ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.10",
      "date": "2026-05-11T11:18:04.000Z",
      "arch": "x86_64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "0d621a1469a6b3e9e0828d9918cf503eac205cc2399a69c412bccb13072315da",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.9.10",
      "date": "2026-05-11T11:16:15.000Z",
      "arch": "aarch64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "9e862806136318e8b7066b781a9e15c7f5be8fa2fcae44af2db85a4ed6ec732a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.9.10",
      "date": "2026-05-11T11:17:23.000Z",
      "arch": "x86_64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "4561aeb5efc8670dbe573559dfce86b429cd43207f50d220f75556d3c889d86e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.10",
      "date": "2026-05-11T11:16:08.000Z",
      "arch": "x86_64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "be342acf2fba79c7cf5df30852c0fadd620d08684fff5693423099c00e517cea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.10",
      "date": "2026-05-11T11:16:11.000Z",
      "arch": "x86_64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "a0ef0488b88acee1825cd082732616e972161c915079c63b5329488f4e82a003",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.9.10",
      "date": "2026-05-11T11:16:06.000Z",
      "arch": "x86_64",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "6a43ac7b91e6c33fa47c97d0eae93ca16617c26836967d5ed3d656cf3eeb9cc4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.10",
      "date": "2026-05-22T11:17:23.000Z",
      "arch": "emscripten",
      "commit": "77a137ade914962aaa2a4ac773f8438eda5951f3",
      "fileid": "e509efc8f4d45e28e87d7a467274b7c1068c0a01e81045000ce571122474bdc3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/quanteda/actions/runs/25666438757"
    }
  ]
}