lang
Uses LLMs to translate R help docs on the fly. Contribute to mlverse/lang development by creating an account on GitHub.
R help pages translated on demand by whichever LLM you point it at.
◆Recent moves
- 2mo ago
Context summary dropped for very short fields
Omits the context summary from the translation prompt when the input runs ten words or fewer. The failure it fixes is specific to local models: handed a context far longer than the field itself, they paraphrase the context rather than translating the input. A direct walk-back of the feature 0.1.1 introduced, applied where it hurt.
View source ↗ - 2mo ago
Page-level context injection and structured Rd parsing
Adds context_size to lang_use() and lang_help(), generating a short summary of the whole help page and injecting it into each field's prompt so terminology stays consistent across sections, defaulting to 100 words. Rd parsing moves from regex text manipulation to a structured intermediate list via rd_to_list() and list_to_rd(), removing a class of formatting edge cases.
View source ↗ - 9mo ago
R help pages translated live in the IDE help pane
⚡ SPARKThe initial release: R documentation translated on the fly by a user-chosen language model, surfacing in the RStudio and Positron help panes. It makes translation a read-time property of the reader's session rather than something package authors or translators have to produce and ship.
View source ↗