{
  "_id": "6a1040fcacfb0bcc41c9d3bd",
  "Package": "rsyntax",
  "Type": "Package",
  "Title": "Extract Semantic Relations from Text by Querying and Reshaping\nSyntax",
  "Version": "0.1.4",
  "Date": "2022-06-06",
  "Author": "Kasper Welbers and Wouter van Atteveldt",
  "Maintainer": "Kasper Welbers <kasperwelbers@gmail.com>",
  "LazyData": "true",
  "Encoding": "UTF-8",
  "Description": "Various functions for querying and reshaping dependency\ntrees, as for instance created with the 'spacyr' or 'udpipe'\npackages. This enables the automatic extraction of useful\nsemantic relations from texts, such as quotes (who said what)\nand clauses (who did what). Method proposed in Van Atteveldt et\nal. (2017) <doi:10.1017/pan.2016.12>.",
  "License": "GPL-3",
  "RoxygenNote": "7.1.2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-11 08:01:31 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "libglpk-dev libicu-dev libpng-dev libxml2-dev",
  "Repository": "https://kasperwelbers.r-universe.dev",
  "Date/Publication": "2022-06-07 03:30:05 UTC",
  "RemoteUrl": "https://github.com/cran/rsyntax",
  "RemoteRef": "HEAD",
  "RemoteSha": "4264352d4000ff72331320a3bd0316a3c797f9c5",
  "MD5sum": "5f780cd46e6bd5e2accfa6863403c271",
  "_user": "kasperwelbers",
  "_type": "src",
  "_file": "rsyntax_0.1.4.tar.gz",
  "_fileid": "d62c667be073f0b672f2008f7ed4cbc32c2db94da89b42bde17cf4e9e232fb3d",
  "_filesize": 413734,
  "_sha256": "d62c667be073f0b672f2008f7ed4cbc32c2db94da89b42bde17cf4e9e232fb3d",
  "_created": "2026-05-11T08:01:31.000Z",
  "_published": "2026-05-22T11:41:48.130Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77372468412,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6913245761"
    },
    {
      "job": 77372468833,
      "time": 128,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913242101"
    },
    {
      "job": 77372468835,
      "time": 99,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6913231758"
    },
    {
      "job": 77372468582,
      "time": 112,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913235260"
    },
    {
      "job": 77372468341,
      "time": 146,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913201551"
    },
    {
      "job": 77372468113,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159632004"
    },
    {
      "job": 77372468616,
      "time": 94,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6913229573"
    },
    {
      "job": 77372468521,
      "time": 82,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6913227133"
    },
    {
      "job": 77372468532,
      "time": 81,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6913226743"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/rsyntax",
  "_commit": {
    "id": "4264352d4000ff72331320a3bd0316a3c797f9c5",
    "author": "Kasper Welbers <kasperwelbers@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.4\n",
    "time": 1654572605
  },
  "_maintainer": {
    "name": "Kasper Welbers",
    "email": "kasperwelbers@gmail.com",
    "login": "kasperwelbers",
    "orcid": "0000-0003-2929-3815",
    "twitter": "@KasperWelbers",
    "uuid": 6179240
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.2.0",
      "role": "Depends"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "tokenbrowser",
      "role": "Imports"
    },
    {
      "package": "base64enc",
      "role": "Imports"
    },
    {
      "package": "png",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.11.8",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "spacyr",
      "role": "Enhances"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "kasperwelbers",
      "count": 5,
      "uuid": 6179240
    }
  ],
  "_userbio": {
    "uuid": 6179240,
    "type": "user",
    "name": "Kasper Welbers",
    "description": "Associate Professor at VU University Amsterdam, department of Communication Science. Mostly work on research related stuff in R, Typescript and Python."
  },
  "_downloads": {
    "count": 464,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rsyntax"
  },
  "_searchresults": 25,
  "_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/rsyntax.html",
    "manual.pdf"
  ],
  "_realowner": "kasperwelbers",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-06-02"
    },
    {
      "version": "0.1.1",
      "date": "2020-11-16"
    },
    {
      "version": "0.1.2",
      "date": "2021-06-13"
    },
    {
      "version": "0.1.3",
      "date": "2022-01-24"
    },
    {
      "version": "0.1.4",
      "date": "2022-06-07"
    }
  ],
  "_exports": [
    "%>%",
    "add_span_quotes",
    "AND",
    "annotate",
    "annotate_nodes",
    "annotate_tqueries",
    "apply_queries",
    "as_tokenindex",
    "BREAK",
    "cast_text",
    "children",
    "chop",
    "climb_tree",
    "copy_fill",
    "copy_nodes",
    "custom_fill",
    "fill",
    "get_branch_id",
    "get_long_ids",
    "get_nodes",
    "isolate_branch",
    "mutate_nodes",
    "NOT",
    "not_children",
    "not_parents",
    "OR",
    "parents",
    "plot_tree",
    "remove_fill",
    "remove_nodes",
    "reselect_nodes",
    "rsyntax_threads",
    "select_nodes",
    "selected_nodes",
    "set_rsyntax_threads",
    "split_UD_conj",
    "subset_nodes",
    "syntax_reader",
    "tquery",
    "unselect_nodes"
  ],
  "_datasets": [
    {
      "name": "dutch",
      "title": "Dutch lemma",
      "object": "dutch",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "quote_punctuation",
      "title": "Quote punctuation",
      "object": "quote_punctuation",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "tokens_corenlp",
      "title": "Example tokens for coreNLP English",
      "object": "tokens_corenlp",
      "class": [
        "data.frame"
      ],
      "fields": [
        "doc_id",
        "token_id",
        "sentence",
        "offset",
        "token",
        "lemma",
        "POS",
        "parent",
        "relation"
      ],
      "rows": 36,
      "table": true,
      "tojson": true
    },
    {
      "name": "tokens_dutchclauses",
      "title": "Example tokens for Dutch clauses",
      "object": "tokens_dutchclauses",
      "class": [
        "data.frame"
      ],
      "fields": [
        "doc_id",
        "token_id",
        "para",
        "sentence",
        "offset",
        "token",
        "lemma",
        "POS",
        "parent",
        "relation"
      ],
      "rows": 143,
      "table": true,
      "tojson": true
    },
    {
      "name": "tokens_dutchquotes",
      "title": "Example tokens for Dutch quotes",
      "object": "tokens_dutchquotes",
      "class": [
        "data.frame"
      ],
      "fields": [
        "doc_id",
        "token_id",
        "para",
        "sentence",
        "offset",
        "token",
        "lemma",
        "POS",
        "parent",
        "relation"
      ],
      "rows": 91,
      "table": true,
      "tojson": true
    },
    {
      "name": "tokens_spacy",
      "title": "Example tokens for spacy English",
      "object": "tokens_spacy",
      "class": [
        "data.frame"
      ],
      "fields": [
        "doc_id",
        "sentence_id",
        "token_id",
        "token",
        "lemma",
        "pos",
        "head_token_id",
        "dep_rel",
        "entity"
      ],
      "rows": 67,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_span_quotes",
      "title": "Add span quotes to a source-quote annotations",
      "topics": [
        "add_span_quotes"
      ]
    },
    {
      "page": "AND",
      "title": "Use AND search in tquery",
      "topics": [
        "AND"
      ]
    },
    {
      "page": "annotate",
      "title": "Annotate a tokenlist based on rsyntax queries",
      "topics": [
        "annotate"
      ]
    },
    {
      "page": "annotate_nodes",
      "title": "Annotate a tokenlist based on rsyntaxNodes",
      "topics": [
        "annotate_nodes"
      ]
    },
    {
      "page": "annotate_tqueries",
      "title": "Annotate a tokenlist based on rsyntax queries",
      "topics": [
        "annotate_tqueries"
      ]
    },
    {
      "page": "apply_queries",
      "title": "Apply queries created with tquery",
      "topics": [
        "apply_queries"
      ]
    },
    {
      "page": "as_tokenindex",
      "title": "Prepare a tokenIndex",
      "topics": [
        "as_tokenindex"
      ]
    },
    {
      "page": "BREAK",
      "title": "A special NOT condition if depth > 1",
      "topics": [
        "BREAK"
      ]
    },
    {
      "page": "cast_text",
      "title": "Cast annotations to text",
      "topics": [
        "cast_text"
      ]
    },
    {
      "page": "chop",
      "title": "Chop of a branch of the tree",
      "topics": [
        "chop"
      ]
    },
    {
      "page": "climb_tree",
      "title": "Have a node adopt its parent's position",
      "topics": [
        "climb_tree"
      ]
    },
    {
      "page": "copy_fill",
      "title": "Copy nodes",
      "topics": [
        "copy_fill"
      ]
    },
    {
      "page": "copy_nodes",
      "title": "Copy nodes",
      "topics": [
        "copy_nodes"
      ]
    },
    {
      "page": "custom_fill",
      "title": "Specify custom fill behavior",
      "topics": [
        "custom_fill"
      ]
    },
    {
      "page": "dutch",
      "title": "Dutch lemma",
      "topics": [
        "dutch"
      ]
    },
    {
      "page": "fill",
      "title": "Specify custom fill behavior",
      "topics": [
        "fill"
      ]
    },
    {
      "page": "get_branch_id",
      "title": "Add the branch id as a column to the tokenindex",
      "topics": [
        "get_branch_id"
      ]
    },
    {
      "page": "get_long_ids",
      "title": "Get ids in various forms to extract token_ids",
      "topics": [
        "get_long_ids"
      ]
    },
    {
      "page": "get_nodes",
      "title": "Transform the nodes to long format and match with token data",
      "topics": [
        "get_nodes"
      ]
    },
    {
      "page": "isolate_branch",
      "title": "Isolate a branch in a dependency tree",
      "topics": [
        "isolate_branch"
      ]
    },
    {
      "page": "mutate_nodes",
      "title": "Mutate nodes",
      "topics": [
        "mutate_nodes"
      ]
    },
    {
      "page": "nested_nodes",
      "title": "Search for parents or children in tquery",
      "topics": [
        "children",
        "nested_nodes",
        "not_children",
        "not_parents",
        "parents"
      ]
    },
    {
      "page": "NOT",
      "title": "Use NOT search in tquery",
      "topics": [
        "NOT"
      ]
    },
    {
      "page": "OR",
      "title": "Use OR search in tquery",
      "topics": [
        "OR"
      ]
    },
    {
      "page": "plot_tree",
      "title": "Create an igraph tree from a sentence",
      "topics": [
        "plot_tree"
      ]
    },
    {
      "page": "print.tQuery",
      "title": "S3 print for tQuery class",
      "topics": [
        "print.tQuery"
      ]
    },
    {
      "page": "quote_punctuation",
      "title": "Quote punctuation",
      "topics": [
        "quote_punctuation"
      ]
    },
    {
      "page": "remove_fill",
      "title": "Remove fill",
      "topics": [
        "remove_fill"
      ]
    },
    {
      "page": "remove_nodes",
      "title": "Remove nodes",
      "topics": [
        "remove_nodes"
      ]
    },
    {
      "page": "reselect_nodes",
      "title": "Within a chain of reshape operations, reapply the tquery",
      "topics": [
        "reselect_nodes"
      ]
    },
    {
      "page": "rsyntax_threads",
      "title": "Get the number of threads to be used by rsyntax functions",
      "topics": [
        "rsyntax_threads"
      ]
    },
    {
      "page": "select_nodes",
      "title": "Apply tquery to initiate reshape operations",
      "topics": [
        "select_nodes"
      ]
    },
    {
      "page": "selected_nodes",
      "title": "If select_nodes() is used, the selected nodes can be extracted with selected_nodes(). This is mainly for internal use, but it can also be usefull for debugging, and to controll loops of reshape operation (e.g. break if no selected nodes left)",
      "topics": [
        "selected_nodes"
      ]
    },
    {
      "page": "set_rsyntax_threads",
      "title": "Set number of threads to be used by rsyntax functions",
      "topics": [
        "set_rsyntax_threads"
      ]
    },
    {
      "page": "split_UD_conj",
      "title": "Split conjunctions for dependency trees in Universal Dependencies",
      "topics": [
        "split_UD_conj"
      ]
    },
    {
      "page": "subset_nodes",
      "title": "Subset a select_nodes selection",
      "topics": [
        "subset_nodes"
      ]
    },
    {
      "page": "syntax_reader",
      "title": "Create a full text browser with highlighted rsyntax annotations",
      "topics": [
        "syntax_reader"
      ]
    },
    {
      "page": "tokens_corenlp",
      "title": "Example tokens for coreNLP English",
      "topics": [
        "tokens_corenlp"
      ]
    },
    {
      "page": "tokens_dutchclauses",
      "title": "Example tokens for Dutch clauses",
      "topics": [
        "tokens_dutchclauses"
      ]
    },
    {
      "page": "tokens_dutchquotes",
      "title": "Example tokens for Dutch quotes",
      "topics": [
        "tokens_dutchquotes"
      ]
    },
    {
      "page": "tokens_spacy",
      "title": "Example tokens for spacy English",
      "topics": [
        "tokens_spacy"
      ]
    },
    {
      "page": "tquery",
      "title": "Create a query for dependency based parse trees in a data.table (CoNLL-U or similar format).",
      "topics": [
        "tquery"
      ]
    },
    {
      "page": "unselect_nodes",
      "title": "Undo select_nodes",
      "topics": [
        "unselect_nodes"
      ]
    }
  ],
  "_readme": "https://github.com/cran/rsyntax/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "cli",
    "cpp11",
    "data.table",
    "digest",
    "glue",
    "igraph",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pkgconfig",
    "png",
    "rlang",
    "stringi",
    "tidyselect",
    "tokenbrowser",
    "vctrs",
    "withr"
  ],
  "_score": 3.051152522447381,
  "_indexed": true,
  "_nocasepkg": "rsyntax",
  "_universes": [
    "kasperwelbers"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.4",
      "date": "2026-05-11T08:03:54.000Z",
      "distro": "noble",
      "commit": "4264352d4000ff72331320a3bd0316a3c797f9c5",
      "fileid": "19cabc77e330398221a19c74d014af762b4c539d9f88c8ac69f63c89be8c2979",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.4",
      "date": "2026-05-11T08:03:43.000Z",
      "distro": "noble",
      "commit": "4264352d4000ff72331320a3bd0316a3c797f9c5",
      "fileid": "740b07eb1c3804a9b5277f7479f64165f0d593df471999f9f01a17737792b085",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.4",
      "date": "2026-05-11T08:03:15.000Z",
      "commit": "4264352d4000ff72331320a3bd0316a3c797f9c5",
      "fileid": "d245cfef5ef0c530f93d4412bb1e1af3a4cb6eb203682717040dc9ae00a6e7c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.4",
      "date": "2026-05-11T08:03:26.000Z",
      "commit": "4264352d4000ff72331320a3bd0316a3c797f9c5",
      "fileid": "874c3ab54a2e5ff340001f4777674d1c127a9a4e6482f46e087aeee483c9c23a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.4",
      "date": "2026-05-11T08:02:52.000Z",
      "commit": "4264352d4000ff72331320a3bd0316a3c797f9c5",
      "fileid": "42f0b5cc1e8ffd5eb3e925faa895505c3e9ae49c9b964b287de82d90dfb4ab29",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.4",
      "date": "2026-05-11T08:02:45.000Z",
      "commit": "4264352d4000ff72331320a3bd0316a3c797f9c5",
      "fileid": "1c8b722d8b0f06008cf0571506bac8a99b28b3c5ff33a86d38672c0e32230917",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.4",
      "date": "2026-05-11T08:02:41.000Z",
      "commit": "4264352d4000ff72331320a3bd0316a3c797f9c5",
      "fileid": "3acf95e29082d551b4b37440455d35b5391c3d6f42f7d022c999fa63f645af52",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.4",
      "date": "2026-05-22T11:41:34.000Z",
      "commit": "4264352d4000ff72331320a3bd0316a3c797f9c5",
      "fileid": "f27d7a662891fc6fe025b85bbb3f878cff6e299077b4c7992b68259cf1d4bfb8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kasperwelbers/actions/runs/25657755562"
    }
  ]
}