linguee_translation_examples {polyglotr} | R Documentation |
Provide translation examples using Linguee Translation API
Description
Provide translation examples using Linguee Translation API
Usage
linguee_translation_examples(
query,
src,
dst,
guess_direction = FALSE,
follow_corrections = "always"
)
Arguments
query |
The word or phrase for which you want translation examples. |
src |
The source language of the word or phrase. Accepts language codes such as "en", "es", "fr", etc. |
dst |
The target language for the translation examples. Accepts language codes such as "en", "es", "fr", etc. |
guess_direction |
A boolean flag that determines whether the API should guess the translation direction. The default value is FALSE. |
follow_corrections |
Specifies how to treat responses with a "did you mean" link. Possible values are "always", "never", or "on_empty_translations". The default value is "always". |
Value
A dataframe of translation examples with columns: source, target, pos.
See Also
linguee_word_translation
Examples
linguee_translation_examples(query = "hello", src = "en", dst = "es")
[Package polyglotr version 1.5.1 Index]