{
  "_id": "6af501e2f58eaab79920a83a",
  "Package": "PsyLingLLM",
  "Type": "Package",
  "Title": "Controlled Psycholinguistic Experiments with Large Language\nModels",
  "Version": "0.4.0",
  "Authors@R": "person(\ngiven = \"Han\",\nfamily = \"Ming\",\nemail = \"hanmingpsy@gmail.com\",\nrole = c(\"aut\", \"cre\")\n)",
  "Description": "Runs controlled psycholinguistic, psychological,\ncognitive, and educational experiments with large language\nmodels. Registry-based configuration separates models,\nproviders, and application programming interfaces so that\ncompatible services can share experimental designs. Functions\nsupport randomized and factorial trials, multi-turn\nconversations, response and reasoning capture, timing and token\nmeasurements, and structured result export. For methodological\ncontext on using language models as experimental participants,\nsee Dillion et al. (2023) <doi:10.1016/j.tics.2023.04.008>.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/HanMingPsy/PsyLingLLM-R",
  "BugReports": "https://github.com/HanMingPsy/PsyLingLLM-R/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-11 23:56:17 UTC",
    "User": "root"
  },
  "Author": "Han Ming [aut, cre]",
  "Maintainer": "Han Ming <hanmingpsy@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-11 22:50:15 UTC",
  "RemoteUrl": "https://github.com/cran/PsyLingLLM",
  "RemoteRef": "HEAD",
  "RemoteSha": "2146ec7cb2220b85238ab979eb7bb7e6c73f2d9e",
  "_user": "cran",
  "_type": "src",
  "_file": "PsyLingLLM_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/cf1bb3905af5f9fea361ae20aaa3e6e11545aeebeb7ba4fadefa18a2efeff96e",
  "_filesize": 639204,
  "_sha256": "cf1bb3905af5f9fea361ae20aaa3e6e11545aeebeb7ba4fadefa18a2efeff96e",
  "_expires": "2027-02-20T00:01:36.000Z",
  "_created": "2026-11-11T23:56:17.000Z",
  "_published": "2026-11-12T00:01:38.582Z",
  "_upstream": "https://github.com/cran/PsyLingLLM",
  "_status": "success",
  "_maintainer": {
    "name": "Han Ming",
    "email": "hanmingpsy@gmail.com",
    "login": "hanmingpsy",
    "description": "",
    "uuid": 232505089
  },
  "_jobs": [
    {
      "job": 130870057163,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13901871743"
    },
    {
      "job": 130870057260,
      "time": 150,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13901926979"
    },
    {
      "job": 130868752765,
      "time": 187,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13901638904"
    },
    {
      "job": 130870057242,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13900939656"
    },
    {
      "job": 130870057276,
      "time": 270,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13902631224"
    },
    {
      "job": 130870057185,
      "time": 215,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13901479984"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/43123199493",
  "_commit": {
    "id": "2146ec7cb2220b85238ab979eb7bb7e6c73f2d9e",
    "author": "Han Ming <hanmingpsy@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.4.0\n",
    "time": 1794437415
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "writexl",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.2.0",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "version": ">= 1.8.0",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "yaml",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "readxl",
      "role": "Imports"
    },
    {
      "package": "openxlsx",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "jsonvalidate",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-46",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.4.0",
      "date": "2026-11-11"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "hanmingpsy",
      "count": 1,
      "uuid": 232505089
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 637,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PsyLingLLM"
  },
  "_devurl": "https://github.com/hanmingpsy/psylingllm-r",
  "_searchresults": 0,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/PsyLingLLM.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "adaptive_feedback_experiment",
    "build_body_pass2_structural",
    "build_registry_entry_from_analysis",
    "build_standardized_input",
    "cat_slowly",
    "classify_generation_interface",
    "coerce_path_segments",
    "common_error_blacklist",
    "complete_headers_for_pass2",
    "conversation_experiment",
    "conversation_experiment_with_feedback",
    "default_keyword_lexicon",
    "default_optional_keys",
    "detect_embedded_think_tag",
    "ensure_registry_header",
    "explain_alias",
    "extract_pass2_templates",
    "extract_process_metrics",
    "extract_token_probabilities",
    "extract_usage_fields",
    "factorial_trial_experiment",
    "find_placeholder_path",
    "flat_key_to_regex",
    "flatten_json_paths",
    "format_registration_preview",
    "generate_llm_experiment_list",
    "generate_llm_factorial_experiment_list",
    "get_model_config",
    "get_registry_entry",
    "get_registry_path",
    "get_trial_raw",
    "has_nonempty_text",
    "infer_role_mapping_from_body",
    "infer_structure_from_placeholder",
    "inject_optional_params",
    "is_invalid_candidate",
    "is_message_object",
    "json_get_by_path",
    "list_get_by_path",
    "llm_caller",
    "llm_register",
    "load_registry",
    "make_alias",
    "make_pass2_probe_inputs",
    "merge_defaults_for_probe",
    "multi_model_experiment",
    "normalize_history_messages",
    "normalize_path_key",
    "normalize_path_key_with_regex",
    "normalize_provider_label",
    "normalize_type_label",
    "probe_llm_streaming",
    "register_endpoint_offline",
    "register_endpoint_to_user_registry",
    "save_experiment_results",
    "score_candidates_ns",
    "score_candidates_st",
    "stream_reconstruct_text",
    "strip_optionals_from_body",
    "sub_placeholders",
    "trial_experiment",
    "update_progress_bar",
    "validate_experiment_config",
    "validate_registry_entry",
    "validate_registry_schema"
  ],
  "_help": [
    {
      "page": "adaptive_feedback_experiment",
      "title": "Run an Adaptive Feedback Experiment",
      "topics": [
        "adaptive_feedback_experiment",
        "conversation_experiment_with_feedback"
      ]
    },
    {
      "page": "build_body_pass2_structural",
      "title": "Build Pass-2 body",
      "topics": [
        "build_body_pass2_structural"
      ]
    },
    {
      "page": "build_registry_entry_from_analysis",
      "title": "Build a registry entry from analysis results",
      "topics": [
        "build_registry_entry_from_analysis"
      ]
    },
    {
      "page": "build_standardized_input",
      "title": "Build standardized Pass-2 headers & body from Pass-1 raw inputs",
      "topics": [
        "build_standardized_input"
      ]
    },
    {
      "page": "cat_slowly",
      "title": "Print lines gradually with delay (console-safe)",
      "topics": [
        "cat_slowly"
      ]
    },
    {
      "page": "classify_generation_interface",
      "title": "Classify LLM generation interface from URL (robust and version-agnostic)",
      "topics": [
        "classify_generation_interface"
      ]
    },
    {
      "page": "common_error_blacklist",
      "title": "Common provider error-field blacklist (path segments only)",
      "topics": [
        "common_error_blacklist"
      ]
    },
    {
      "page": "compare_path_line",
      "title": "Compare two optional scalar strings (paths). Return a structured line and a boolean flag.",
      "topics": [
        "compare_path_line"
      ]
    },
    {
      "page": "complete_headers_for_pass2",
      "title": "Complete headers minimally for Pass-2 (keeps user values)",
      "topics": [
        "complete_headers_for_pass2"
      ]
    },
    {
      "page": "conversation_experiment",
      "title": "Run a Multi-turn Conversation Experiment",
      "topics": [
        "conversation_experiment"
      ]
    },
    {
      "page": "default_keyword_lexicon",
      "title": "Default keyword lexicon for ns/st scoring",
      "topics": [
        "default_keyword_lexicon"
      ]
    },
    {
      "page": "default_optional_keys",
      "title": "Default optional keys for common LLM providers (explicit removal first)",
      "topics": [
        "default_optional_keys"
      ]
    },
    {
      "page": "detect_embedded_think_tag",
      "title": "Detect embedded <think> tags in model output",
      "topics": [
        "detect_embedded_think_tag"
      ]
    },
    {
      "page": "ensure_registry_header",
      "title": "Ensure registry directory exists and header is present",
      "topics": [
        "ensure_registry_header"
      ]
    },
    {
      "page": "explain_alias",
      "title": "Explain how an alias was derived from a model id",
      "topics": [
        "explain_alias"
      ]
    },
    {
      "page": "extract_pass2_templates",
      "title": "Tolerant extraction of Pass-2 templates (headers and body)",
      "topics": [
        "extract_pass2_templates"
      ]
    },
    {
      "page": "extract_process_metrics",
      "title": "Extract Standard Process Metrics from RAW Trial Results",
      "topics": [
        "extract_process_metrics"
      ]
    },
    {
      "page": "extract_token_probabilities",
      "title": "Extract Token Probabilities from RAW Trial Results",
      "topics": [
        "extract_token_probabilities"
      ]
    },
    {
      "page": "extract_usage_fields",
      "title": "Extract usage field names from a parsed non-streaming response",
      "topics": [
        "extract_usage_fields"
      ]
    },
    {
      "page": "factorial_trial_experiment",
      "title": "Run Factorial Trial Experiment (registry-driven, assistant-native)",
      "topics": [
        "factorial_trial_experiment"
      ]
    },
    {
      "page": "find_placeholder_path",
      "title": "Recursively find the first path to a placeholder string",
      "topics": [
        "find_placeholder_path"
      ]
    },
    {
      "page": "flatten_json_paths",
      "title": "Flatten a JSON-like object into (path, key, value) rows",
      "topics": [
        "flatten_json_paths"
      ]
    },
    {
      "page": "format_registration_preview",
      "title": "Render a registry entry preview (verbatim from the registry node)",
      "topics": [
        "format_registration_preview"
      ]
    },
    {
      "page": "generate_llm_experiment_list",
      "title": "Generate LLM Experiment List (CSV→XLSX conversion, UTF-8 safe)",
      "topics": [
        "generate_llm_experiment_list"
      ]
    },
    {
      "page": "generate_llm_factorial_experiment_list",
      "title": "Generate LLM Experiment List for Factorial Design (UTF-8 safe)",
      "topics": [
        "generate_llm_factorial_experiment_list"
      ]
    },
    {
      "page": "get_model_config",
      "title": "Resolve a model name (id or alias) to a registry entry (new registry-aware)",
      "topics": [
        "get_model_config"
      ]
    },
    {
      "page": "get_registry_entry",
      "title": "Retrieve a registry interface entry (inputs / outputs / streaming)",
      "topics": [
        "get_registry_entry"
      ]
    },
    {
      "page": "get_registry_path",
      "title": "Get user registry path (cross-platform, unified)",
      "topics": [
        "get_registry_path"
      ]
    },
    {
      "page": "get_trial_raw",
      "title": "Inspect One Archived RAW Trial Record",
      "topics": [
        "get_trial_raw"
      ]
    },
    {
      "page": "has_nonempty_text",
      "title": "Does a value contain any non-empty textual content?",
      "topics": [
        "has_nonempty_text"
      ]
    },
    {
      "page": "infer_role_mapping_from_body",
      "title": "Infer role mapping from a chat-style LLM request body",
      "topics": [
        "infer_role_mapping_from_body"
      ]
    },
    {
      "page": "infer_structure_from_placeholder",
      "title": "Infer structure from where '\"\\${CONTENT}\"' lives",
      "topics": [
        "infer_structure_from_placeholder"
      ]
    },
    {
      "page": "inject_optional_params",
      "title": "Inject optional params into a body using a whitelist",
      "topics": [
        "inject_optional_params"
      ]
    },
    {
      "page": "is_invalid_candidate",
      "title": "Hard filter: blacklist, nullish, booleans, numeric-only, too-short Segment-exact blacklist (compares path segments, not substrings).",
      "topics": [
        "is_invalid_candidate"
      ]
    },
    {
      "page": "is_key",
      "title": "Utility: check if a path segment is a named key",
      "topics": [
        "is_key"
      ]
    },
    {
      "page": "is_message_object",
      "title": "Check if an object is a message object",
      "topics": [
        "is_message_object"
      ]
    },
    {
      "page": "list_get_by_path",
      "title": "Get a nested value by a mixed path (character keys and integer indices)",
      "topics": [
        "list_get_by_path"
      ]
    },
    {
      "page": "llm_caller",
      "title": "Call an LLM via the registry",
      "topics": [
        "llm_caller"
      ]
    },
    {
      "page": "llm_register",
      "title": "Register an LLM Endpoint with Pass-2 Validation",
      "topics": [
        "llm_register"
      ]
    },
    {
      "page": "load_registry",
      "title": "Load the system LLM registry",
      "topics": [
        "load_registry"
      ]
    },
    {
      "page": "make_alias",
      "title": "Generate a compact alias for a model id",
      "topics": [
        "make_alias"
      ]
    },
    {
      "page": "make_pass2_probe_inputs",
      "title": "Build Pass-2 EFFECTIVE probe inputs (no forced system; structural role inference)",
      "topics": [
        "make_pass2_probe_inputs"
      ]
    },
    {
      "page": "merge_defaults_for_probe",
      "title": "Merge default generation parameters into a request body (probe only)",
      "topics": [
        "merge_defaults_for_probe"
      ]
    },
    {
      "page": "multi_model_experiment",
      "title": "Run Trials Across Multiple Models (registry-driven, assistant-native)",
      "topics": [
        "multi_model_experiment"
      ]
    },
    {
      "page": "normalize_history_messages",
      "title": "Normalize conversation history into message objects",
      "topics": [
        "normalize_history_messages"
      ]
    },
    {
      "page": "normalize_path_key_with_regex",
      "title": "Normalize any path spec to a flat key AND, if needed, a regex with wildcard index",
      "topics": [
        "normalize_path_key_with_regex"
      ]
    },
    {
      "page": "normalize_provider_label",
      "title": "Normalize a free-form provider label",
      "topics": [
        "normalize_provider_label"
      ]
    },
    {
      "page": "normalize_type_label",
      "title": "Normalize a free-form type string (strip a leading '@' if present)",
      "topics": [
        "normalize_type_label"
      ]
    },
    {
      "page": "probe_llm_streaming",
      "title": "Probe an LLM endpoint (non-stream + streaming, SSE-aware)",
      "topics": [
        "probe_llm_streaming"
      ]
    },
    {
      "page": "PsyLingLLM_Schema",
      "title": "PsyLingLLM Schema (v1)",
      "topics": [
        "PsyLingLLM_Schema"
      ]
    },
    {
      "page": "register_endpoint_offline",
      "title": "Register an LLM endpoint offline (supports reasoning / thinking path)",
      "topics": [
        "register_endpoint_offline"
      ]
    },
    {
      "page": "register_endpoint_to_user_registry",
      "title": "Upsert endpoint entry into the user registry (safe merge)",
      "topics": [
        "register_endpoint_to_user_registry"
      ]
    },
    {
      "page": "render_pass2_path_consistency_report",
      "title": "Render a structured \"[Pass-2 Verified Ports]\" report section.",
      "topics": [
        "render_pass2_path_consistency_report"
      ]
    },
    {
      "page": "save_experiment_results",
      "title": "Save Experiment Results to File",
      "topics": [
        "save_experiment_results"
      ]
    },
    {
      "page": "score_candidates_ns",
      "title": "Rank non-streaming JSON paths for answer/think (segment-aware, conflict-guarded)",
      "topics": [
        "score_candidates_ns"
      ]
    },
    {
      "page": "score_candidates_st",
      "title": "Rank streaming (SSE) candidates for answer/think (temporal aggregation, delta-aware, conflict-guarded)",
      "topics": [
        "score_candidates_st"
      ]
    },
    {
      "page": "stream_reconstruct_text",
      "title": "Reconstruct stream text from raw_json using exact or wildcard-index matching Falls back to regex (for \"..\" wildcard) if exact match finds nothing.",
      "topics": [
        "stream_reconstruct_text"
      ]
    },
    {
      "page": "strip_optionals_from_body",
      "title": "Strip optional runtime parameters from a request body",
      "topics": [
        "strip_optionals_from_body"
      ]
    },
    {
      "page": "sub_placeholders",
      "title": "Substitute placeholders '\"\\${API_KEY}\"', '\"\\${CONTENT}\"', '\"\\${ROLE}\"' robustly",
      "topics": [
        "sub_placeholders"
      ]
    },
    {
      "page": "trial_experiment",
      "title": "Run LLM Trial Experiment",
      "topics": [
        "trial_experiment"
      ]
    },
    {
      "page": "update_progress_bar",
      "title": "Update progress bar for an experiment",
      "topics": [
        "update_progress_bar"
      ]
    },
    {
      "page": "validate_experiment_config",
      "title": "Validate experiment configuration and resolve API URL",
      "topics": [
        "validate_experiment_config"
      ]
    },
    {
      "page": "validate_registry_entry",
      "title": "Validate structure of a registry entry",
      "topics": [
        "validate_registry_entry"
      ]
    },
    {
      "page": "validate_registry_schema",
      "title": "Validate a PsyLingLLM Registry Document",
      "topics": [
        "validate_registry_schema"
      ]
    }
  ],
  "_readme": "https://github.com/cran/PsyLingLLM/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "cellranger",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "dplyr",
    "generics",
    "glue",
    "hms",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "openxlsx",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "Rcpp",
    "readr",
    "readxl",
    "rematch",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "writexl",
    "yaml",
    "zip"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "psylingllm",
  "_universes": [
    "cran",
    "hanmingpsy"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-11-11T23:58:27.000Z",
      "distro": "resolute",
      "commit": "2146ec7cb2220b85238ab979eb7bb7e6c73f2d9e",
      "fileid": "https://r2.ropensci.org/527f7b9e9e7040be6a8679433b46320f2bf5db2c2a1b74a088e54af0895d7cc6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/43123199493"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-11-11T23:58:26.000Z",
      "distro": "resolute",
      "commit": "2146ec7cb2220b85238ab979eb7bb7e6c73f2d9e",
      "fileid": "https://r2.ropensci.org/a9a496c085f2ae6be19465b3f541a3487de4ce56b45bbe0430f6a4366682adcf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/43123199493"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-11-11T23:58:40.000Z",
      "commit": "2146ec7cb2220b85238ab979eb7bb7e6c73f2d9e",
      "fileid": "https://r2.ropensci.org/75b1cfb5e46aae2afd897d54cddc23a50927ba8ca486ceea6949fce5572d9650",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/43123199493"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-11T23:59:06.000Z",
      "commit": "2146ec7cb2220b85238ab979eb7bb7e6c73f2d9e",
      "fileid": "https://r2.ropensci.org/dd49143cc09cce23c8f240d3cc353a280c32f059e742c92681fa5c6b5ae62fe9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/43123199493"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-11T23:58:42.000Z",
      "commit": "2146ec7cb2220b85238ab979eb7bb7e6c73f2d9e",
      "fileid": "https://r2.ropensci.org/57761c35855d90732b53dd11c7536167165db162334c4e566c7b85b0210a3801",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/43123199493"
    }
  ]
}