emend_what_language: Identify the language in the text.

View source: R/translate.R

emend_what_languageR Documentation

Identify the language in the text.

Description

Identify the language in the text.

Usage

emend_what_language(text, chat = get_default_chat())

Arguments

text

A string or a factor that contains text information.

chat

A chat object defined by ellmer

Value

A character vector of language names.

Examples


chat <- ellmer::chat_ollama(model = "llama3.1:8b", seed = 0, echo = "none")
emend_what_language(c("\u733F\u3082\u6728\u304B\u3089\u843D\u3061\u308B", 
                      "\u4F60\u597D", "bon appetit"), chat = chat)



emend documentation built on April 4, 2025, 2:38 a.m.