{
  "_id": "6ace0116a14063b82c3ae54c",
  "Package": "discursive",
  "Title": "Measuring Discursive Sophistication in Open-Ended Survey\nResponses",
  "Version": "0.1.1.9000",
  "Authors@R": "person(\"Patrick\", \"Kraft\", , \"kraft.pw@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-0123-221X\"))",
  "Description": "A simple approach to measure political sophistication\nbased on open-ended survey responses. Discursive sophistication\ncaptures the complexity of individual attitude expression by\nquantifying its relative size, range, and constraint. For more\ninformation on the measurement approach see: Kraft, Patrick W.\n2023. \"Women Also Know Stuff: Challenging the Gender Gap in\nPolitical Sophistication.\" American Political Science Review\n(forthcoming).",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev libxml2-dev",
  "Repository": "https://pwkraft.r-universe.dev",
  "Date/Publication": "2023-07-04 08:08:21 UTC",
  "RemoteUrl": "https://github.com/pwkraft/discursive",
  "RemoteRef": "HEAD",
  "RemoteSha": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-13 09:53:34 UTC",
    "User": "root"
  },
  "Author": "Patrick Kraft [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-0123-221X>)",
  "Maintainer": "Patrick Kraft <kraft.pw@gmail.com>",
  "_user": "pwkraft",
  "_type": "src",
  "_file": "discursive_0.1.1.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/8f494dd750ee26e45010f08abc4aab76c95b86789f2ec0f2c685ee86c6086171",
  "_filesize": 274066,
  "_sha256": "8f494dd750ee26e45010f08abc4aab76c95b86789f2ec0f2c685ee86c6086171",
  "_expires": "2027-01-21T09:59:48.000Z",
  "_created": "2026-10-13T09:53:34.000Z",
  "_published": "2026-10-13T09:59:50.282Z",
  "_upstream": "https://github.com/pwkraft/discursive",
  "_commit": {
    "id": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
    "author": "Patrick Kraft <kraft.pw@gmail.com>",
    "committer": "Patrick Kraft <kraft.pw@gmail.com>",
    "message": "Increment version number to 0.1.1.9000\n",
    "time": 1688458101
  },
  "_maintainer": {
    "name": "Patrick Kraft",
    "email": "kraft.pw@gmail.com",
    "login": "pwkraft",
    "orcid": "0000-0003-0123-221X",
    "description": "Ramón y Cajal Research Fellow in political science at the Institute of Public Goods and Policies (IPP-CSIC) ",
    "uuid": 6454672
  },
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 115236471431,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11802697181"
    },
    {
      "job": 115236471298,
      "time": 142,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11802273440"
    },
    {
      "job": 115236471424,
      "time": 224,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11802892560"
    },
    {
      "job": 115236471331,
      "time": 292,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11802982296"
    },
    {
      "job": 115234896986,
      "time": 194,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11802771720"
    },
    {
      "job": 115236471481,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11802517334"
    },
    {
      "job": 115236471508,
      "time": 126,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11802228460"
    },
    {
      "job": 115236471625,
      "time": 136,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11803037292"
    },
    {
      "job": 115236471440,
      "time": 134,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11803346036"
    }
  ],
  "_host": "GitHub-Actions",
  "_status": "success",
  "_buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "SnowballC",
      "role": "Imports"
    },
    {
      "package": "stm",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tm",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "pwkraft",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "pwkraft",
      "count": 36,
      "uuid": 6454672
    }
  ],
  "_userbio": {
    "uuid": 6454672,
    "type": "user",
    "name": "Patrick Kraft",
    "followers": 61,
    "description": "Ramón y Cajal Research Fellow in political science at the Institute of Public Goods and Policies (IPP-CSIC) "
  },
  "_downloads": {
    "count": 270,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/discursive"
  },
  "_devurl": "https://github.com/pwkraft/discursive",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/discursive.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/pwkraft/discursive",
  "_realowner": "pwkraft",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2023-06-11"
    }
  ],
  "_exports": [
    "discursive",
    "discursive_combine",
    "discursive_constraint",
    "discursive_range",
    "discursive_size",
    "ntopics"
  ],
  "_datasets": [
    {
      "name": "cces",
      "title": "Cooperative Congressional Election Study 2018",
      "object": "cces",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "age",
        "female",
        "educ_cont",
        "pid_cont",
        "educ_pid",
        "oe01",
        "oe02",
        "oe03",
        "oe04",
        "oe05",
        "oe06",
        "oe07",
        "oe08",
        "oe09",
        "oe10"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "dict_sample",
      "title": "Constraint Dictionary",
      "object": "dict_sample",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cces",
      "title": "Cooperative Congressional Election Study 2018",
      "topics": [
        "cces"
      ]
    },
    {
      "page": "dict_sample",
      "title": "Constraint Dictionary",
      "topics": [
        "dict_sample"
      ]
    },
    {
      "page": "discursive",
      "title": "Compute discursive sophistication for a set of open-ended responses",
      "topics": [
        "discursive"
      ]
    },
    {
      "page": "discursive_combine",
      "title": "Combine three components of discursive sophistication in a single scale",
      "topics": [
        "discursive_combine"
      ]
    },
    {
      "page": "discursive_constraint",
      "title": "Compute the constraint component of discursive sophistication",
      "topics": [
        "discursive_constraint"
      ]
    },
    {
      "page": "discursive_range",
      "title": "Compute the range component of discursive sophistication",
      "topics": [
        "discursive_range"
      ]
    },
    {
      "page": "discursive_size",
      "title": "Compute the size component of discursive sophistication",
      "topics": [
        "discursive_size"
      ]
    },
    {
      "page": "ntopics",
      "title": "Compute number of topics based on stm results",
      "topics": [
        "ntopics"
      ]
    },
    {
      "page": "oe_shannon",
      "title": "Compute Shannon entropy",
      "topics": [
        "oe_shannon"
      ]
    }
  ],
  "_readme": "https://github.com/pwkraft/discursive/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "cli",
    "codetools",
    "data.table",
    "fastmatch",
    "foreach",
    "glmnet",
    "glue",
    "ISOcodes",
    "iterators",
    "jsonlite",
    "lattice",
    "lda",
    "lifecycle",
    "magrittr",
    "Matrix",
    "matrixStats",
    "NLP",
    "quadprog",
    "quanteda",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "shape",
    "slam",
    "SnowballC",
    "stm",
    "stopwords",
    "stringi",
    "stringr",
    "survival",
    "tm",
    "vctrs",
    "xml2",
    "yaml"
  ],
  "_score": 3.1760912590556813,
  "_indexed": true,
  "_nocasepkg": "discursive",
  "_universes": [
    "pwkraft"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:55:54.000Z",
      "distro": "resolute",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "https://r2.ropensci.org/ca1bc492f040c03daeb800482d548d7674262a1cbae06eab412247ea63efce42",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:55:41.000Z",
      "distro": "resolute",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "https://r2.ropensci.org/c146ea8f35afa7a1cfd9918d35f7b15a9d99db10a5bea1f57a43555e7183bb0e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:57:33.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "https://r2.ropensci.org/a4fa2e2353e7e64403bf5656d9e296a1efe9d096750505d4f09c351e61add4a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:57:48.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "https://r2.ropensci.org/6e021b109165121f1fe00c7a72f5230bdd427cae08ffdd20f9525ba1884ebd56",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:55:55.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "https://r2.ropensci.org/b6cafde1a8d59cec73fe6f1c166ce23faa37df358bc894ac5e3393ea5f610c8b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:54:56.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "https://r2.ropensci.org/0530f5a6fca4010ac6c07396b22413d807687b7f00423ec644643b3ef4ed8394",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:55:08.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "https://r2.ropensci.org/3baac4e5bdc74a9257468a47c83470eb84d7b66f585bd2b8cad805d07f19783d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:55:07.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "https://r2.ropensci.org/e5000bcc13419402a5021c405726597e189519911d27db69497bb07aa5d0429b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/38379098983"
    }
  ]
}