Learn R Programming

polyglotr (version 1.6.0)

linguee_word_translation: Translate word using Linguee Translation API

Description

Translate word using Linguee Translation API

Usage

linguee_word_translation(
  word,
  target_language,
  source_language,
  guess_direction = FALSE,
  follow_corrections = "always"
)

Value

Translated word options.

Arguments

word

This is the word that you want to translate.

target_language

This is the language that you want to translate the word into.

source_language

This is the language of the word that you want to translate.

guess_direction

Specifies whether the API should guess the translation direction when the source language is set to "auto". The default value is FALSE.

follow_corrections

Specifies whether the API should include translations that have been marked as corrections. The default value is "always" to include corrections.

Examples

Run this code
# \donttest{
linguee_word_translation("hello", target_language = "es", source_language = "en")
# }

Run the code above in your browser using DataLab