Package: chatRater 1.1.0

Shiyang Zheng

chatRater: Rating and Evaluating Texts Using Large Language Models

Generates ratings and psycholinguistic metrics for textual stimuli using large language models. It enables users to evaluate idioms and other language materials by combining context, prompts, and stimulus inputs. It supports multiple LLM APIs (such as 'OpenAI', 'DeepSeek', 'Anthropic', 'Cohere', 'Google PaLM', and 'Ollama') by allowing users to switch models with a single parameter. In addition to generating numeric ratings, 'chatRater' provides functions for obtaining detailed psycholinguistic metrics including word frequency (with optional corpus input), lexical coverage (with customizable vocabulary size and test basis), Zipf metric, Levenshtein distance, and semantic transparency.

Authors:Shiyang Zheng [aut, cre]

chatRater_1.1.0.tar.gz
chatRater_1.1.0.tar.gz(r-4.5-noble)chatRater_1.1.0.tar.gz(r-4.4-noble)
chatRater_1.1.0.tgz(r-4.4-emscripten)chatRater_1.1.0.tgz(r-4.3-emscripten)
chatRater.pdf |chatRater.html
chatRater/json (API)

# Install 'chatRater' in R:
install.packages('chatRater', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.00 score 1 stars 166 downloads 8 exports 15 dependencies

Last updated 23 days agofrom:934f4d9dfb. Checks:3 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 03 2025
R-4.5-linuxOKMar 03 2025
R-4.4-linuxOKMar 03 2025

Exports:generate_ratingsgenerate_ratings_for_allget_levenshtein_dget_lexical_coverageget_semantic_transparencyget_word_frequencyget_zipf_metricllm_api_call

Dependencies:askpassassertthatclicurlgluehttrjsonlitelifecyclemagrittrmimeopenaiopensslR6rlangsys