{
  "_id": "6a1f24f3b401979e73420f23",
  "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-05-16 06:18:43 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>",
  "MD5sum": "fcf93fe180f12d73e9c25247c1ce26e8",
  "_user": "pwkraft",
  "_type": "src",
  "_file": "discursive_0.1.1.9000.tar.gz",
  "_fileid": "b328d45db894bf2a962201c634185f7fd2df531792e2841c51af588def812bde",
  "_filesize": 274046,
  "_sha256": "b328d45db894bf2a962201c634185f7fd2df531792e2841c51af588def812bde",
  "_created": "2026-05-16T06:18:43.000Z",
  "_published": "2026-06-02T18:46:11.866Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79146680441,
      "time": 196,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031154024"
    },
    {
      "job": 79146680756,
      "time": 189,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031153258"
    },
    {
      "job": 79146680892,
      "time": 179,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031210670"
    },
    {
      "job": 79146680834,
      "time": 152,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031210904"
    },
    {
      "job": 79146680269,
      "time": 183,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031133326"
    },
    {
      "job": 79146679995,
      "time": 121,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366848236"
    },
    {
      "job": 79146680311,
      "time": 132,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031147358"
    },
    {
      "job": 79146680835,
      "time": 154,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031149576"
    },
    {
      "job": 79146680557,
      "time": 131,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031147248"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 6454672
  },
  "_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",
    "description": "Ramón y Cajal Research Fellow in political science at the Institute of Public Goods and Policies (IPP-CSIC) "
  },
  "_downloads": {
    "count": 174,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/discursive"
  },
  "_devurl": "https://github.com/pwkraft/discursive",
  "_searchresults": 6,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/discursive.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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-05-16T06:21:19.000Z",
      "distro": "noble",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "cd164362fa6bc8618d8f3b2bb0007688646d31900035aece9c347211ba35e850",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-05-16T06:21:12.000Z",
      "distro": "noble",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "de003d925103400c9dd2e28980ac02fc1b1c8c0a94d3a2285074b3021806113a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-05-16T06:31:40.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "679b9cc3e401a6d0e5a493f7083d938b7c6e2892cc0c9f526ded3b0d753bdfe4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-05-16T06:31:44.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "6ac9759ab2e213b24e4f8b5a3c39c67ff9c9cf5ea85d55e8237acf03839bc305",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-05-16T06:20:08.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "e60b3a86476ce870401fabbcd5d2836ff83dc02a1111463de135850f508a59c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-05-16T06:20:19.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "7cc430784117733df270fd74f4c4b4461a2ab1e6f84d0a94f280bf54fdb6f8d6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-05-16T06:20:07.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "ca7a2262c6366932f56fe656a1aaf096807b7479fca8b21fce0d86dddee0b79e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1.9000",
      "date": "2026-06-02T18:45:53.000Z",
      "commit": "d96eefbef9dfac78fe1b456a31ce00ebe6b9863b",
      "fileid": "4937d4fa45beadb054d69c1c4ec11681d72849aedd4abd5a787204d5f87649ea",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pwkraft/actions/runs/25954760866"
    }
  ]
}