LLMTranslate

LLMTranslate is an R package that wraps a Shiny application for TRAPD/ISPOR-style survey translation. It automates forward translation, optional back-translation, and reconciliation using large language models from multiple providers:

Key Features (v0.3.0)

Installation

Install from CRAN:

install.packages("LLMTranslate")

Usage

Launch the Shiny app:

library(LLMTranslate)
run_app()

Quick Start

  1. Set up API keys in the “API Keys & Models” tab (or set environment variables)
  2. Choose translation mode: Batch Translation (recommended) or Item-by-item
  3. Upload Excel file with one item per row
  4. Select sheet(s) to translate (or choose “All sheets”)
  5. Choose column containing original items
  6. Adjust prompts if needed (defaults follow TRAPD/ISPOR best practices)
  7. Start translation and monitor progress
  8. Download results as Excel with all sheets and logs

Excel File Preparation

Translation Modes

Batch Translation (recommended for most surveys): - Faster processing (3 LLM calls total vs N×3 for item-by-item) - Better context-aware translations - Maintains terminology consistency across items - Best for instruments with <100 items

Item-by-item Translation: - Works with any instrument length - Can pause and resume translation - Better for 100+ items or rate limit concerns - Fine-grained error handling per item