diff --git a/404.html b/404.html index 96f90b2..9ca2780 100644 --- a/404.html +++ b/404.html @@ -69,7 +69,7 @@
Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/authors.html b/authors.html index de8d08f..4a217e7 100644 --- a/authors.html +++ b/authors.html @@ -74,7 +74,7 @@CRAN release: 2024-08-23
google_translate()
Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/create_translation_table.html b/reference/create_translation_table.html index f2fc6d8..28e7ea7 100644 --- a/reference/create_translation_table.html +++ b/reference/create_translation_table.html @@ -84,7 +84,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/create_transliteration_table.html b/reference/create_transliteration_table.html index 43995ae..b7ddace 100644 --- a/reference/create_transliteration_table.html +++ b/reference/create_transliteration_table.html @@ -84,7 +84,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/figures/hex-polyglotr.png b/reference/figures/hex-polyglotr.png index 0c08164..b82fc47 100644 Binary files a/reference/figures/hex-polyglotr.png and b/reference/figures/hex-polyglotr.png differ diff --git a/reference/google_get_supported_languages.html b/reference/google_get_supported_languages.html index 49c0dae..9c1e4c3 100644 --- a/reference/google_get_supported_languages.html +++ b/reference/google_get_supported_languages.html @@ -62,7 +62,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/google_supported_languages.html b/reference/google_supported_languages.html index d46c6f1..80dfb6b 100644 --- a/reference/google_supported_languages.html +++ b/reference/google_supported_languages.html @@ -66,7 +66,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/google_translate_long_text.html b/reference/google_translate_long_text.html index 87bcffa..3bef98a 100644 --- a/reference/google_translate_long_text.html +++ b/reference/google_translate_long_text.html @@ -101,7 +101,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/google_transliterate.html b/reference/google_transliterate.html index a2ebf2d..1477c81 100644 --- a/reference/google_transliterate.html +++ b/reference/google_transliterate.html @@ -86,7 +86,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/index.html b/reference/index.html index 619bc6a..b2f0bdd 100644 --- a/reference/index.html +++ b/reference/index.html @@ -297,7 +297,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/linguee_translation_examples.html b/reference/linguee_translation_examples.html index 822263a..331e57c 100644 --- a/reference/linguee_translation_examples.html +++ b/reference/linguee_translation_examples.html @@ -108,7 +108,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/linguee_word_translation.html b/reference/linguee_word_translation.html index 552f38c..0795924 100644 --- a/reference/linguee_word_translation.html +++ b/reference/linguee_word_translation.html @@ -102,7 +102,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/microsoft_supported_languages.html b/reference/microsoft_supported_languages.html index 80b830b..4d4368d 100644 --- a/reference/microsoft_supported_languages.html +++ b/reference/microsoft_supported_languages.html @@ -77,7 +77,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/mymemory_translate.html b/reference/mymemory_translate.html index 86a49ac..e2eb129 100644 --- a/reference/mymemory_translate.html +++ b/reference/mymemory_translate.html @@ -86,7 +86,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/pipe.html b/reference/pipe.html index ce29630..129c55a 100644 --- a/reference/pipe.html +++ b/reference/pipe.html @@ -74,7 +74,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/pons_translate.html b/reference/pons_translate.html index 1a48cbd..19a6cc5 100644 --- a/reference/pons_translate.html +++ b/reference/pons_translate.html @@ -89,7 +89,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/qcri_api_key.html b/reference/qcri_api_key.html index 2c0b304..7992e8b 100644 --- a/reference/qcri_api_key.html +++ b/reference/qcri_api_key.html @@ -62,7 +62,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/qcri_get_language_pairs.html b/reference/qcri_get_language_pairs.html index 169088c..56e2762 100644 --- a/reference/qcri_get_language_pairs.html +++ b/reference/qcri_get_language_pairs.html @@ -78,7 +78,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/qcri_translate_text.html b/reference/qcri_translate_text.html index 08b9c7a..84afc48 100644 --- a/reference/qcri_translate_text.html +++ b/reference/qcri_translate_text.html @@ -95,7 +95,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/translate_file.html b/reference/translate_file.html index 38c8b56..b0c44dd 100644 --- a/reference/translate_file.html +++ b/reference/translate_file.html @@ -90,7 +90,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/translate_to_morse.html b/reference/translate_to_morse.html index 991d508..ad5af2c 100644 --- a/reference/translate_to_morse.html +++ b/reference/translate_to_morse.html @@ -74,7 +74,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/wikipedia_get_language_names.html b/reference/wikipedia_get_language_names.html index 783912d..63a9a3c 100644 --- a/reference/wikipedia_get_language_names.html +++ b/reference/wikipedia_get_language_names.html @@ -1176,11 +1176,12 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/wmcloud_translate.html b/reference/wmcloud_translate.html index c6bae92..c2fb7d3 100644 --- a/reference/wmcloud_translate.html +++ b/reference/wmcloud_translate.html @@ -125,7 +125,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/search.json b/search.json index b77d20f..b4d95dd 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://tomeriko96.github.io/polyglotr/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 polyglotr authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/articles/Linguee.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Introduction to Linguee API","text":"polyglotr package provides convenient functions access Linguee API retrieve translations, examples, external sources. vignette demonstrates usage three key functions: linguee_external_sources(), linguee_translation_examples(), linguee_word_translation().","code":"library(polyglotr)"},{"path":"https://tomeriko96.github.io/polyglotr/articles/Linguee.html","id":"external-sources","dir":"Articles","previous_headings":"Introduction","what":"External Sources","title":"Introduction to Linguee API","text":"linguee_external_sources() function retrieves external sources using Linguee Translation API. ’s example usage:","code":"external_sources <- linguee_external_sources(\"hello\", src = \"en\", dst = \"de\") print(external_sources)"},{"path":"https://tomeriko96.github.io/polyglotr/articles/Linguee.html","id":"translation-examples","dir":"Articles","previous_headings":"Introduction","what":"Translation Examples","title":"Introduction to Linguee API","text":"linguee_translation_examples() function provides translation examples using Linguee Translation API. ’s example usage:","code":"translation_examples <- linguee_translation_examples(\"hello\", src = \"en\", dst = \"de\") print(translation_examples)"},{"path":"https://tomeriko96.github.io/polyglotr/articles/Linguee.html","id":"word-translation","dir":"Articles","previous_headings":"Introduction","what":"Word Translation","title":"Introduction to Linguee API","text":"linguee_word_translation() function translates word using Linguee Translation API. ’s example usage:","code":"word_translation <- linguee_word_translation(\"hello\", source_language = \"en\", target_language = \"de\") print(word_translation)"},{"path":"https://tomeriko96.github.io/polyglotr/articles/Movie_Reviews.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Translation of Movie Reviews","text":"vignette, demonstrate use polyglotr package combination packages like text2vec, purrr, dplyr translate movie reviews French.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/articles/Movie_Reviews.html","id":"installation","dir":"Articles","previous_headings":"","what":"Installation","title":"Translation of Movie Reviews","text":"get started, need install required packages. haven’t installed Polyglotr package dependencies, can use following code install :","code":"library(polyglotr) library(purrr) library(dplyr) library(text2vec)"},{"path":"https://tomeriko96.github.io/polyglotr/articles/Movie_Reviews.html","id":"translating-movie-reviews","dir":"Articles","previous_headings":"","what":"Translating Movie Reviews","title":"Translation of Movie Reviews","text":"demonstrate translation movie reviews, use movie_review dataset text2vec package. code , load necessary packages create subset movie_review dataset first 10 rows, used translation. Now, let’s translate review column French using polyglotr package: code snippet , utilize mutate function dplyr conjunction purrr::map_chr apply google_translate function package element review column. translated reviews stored new column named “french_review”.","code":"df <- head(movie_review, 10) glimpse(df) ## show reviews df$review # Translate the review column to French translated_reviews <- df %>% dplyr::mutate(french_review = purrr::map_chr(review, ~ google_translate(.x, target_language = \"fr\", source_language = \"en\")))"},{"path":"https://tomeriko96.github.io/polyglotr/articles/Movie_Reviews.html","id":"results","dir":"Articles","previous_headings":"","what":"Results","title":"Translation of Movie Reviews","text":"Let’s examine translated movie reviews: output display first rows translated movie reviews, including original review column corresponding French translation “french_review” column.","code":"glimpse(translated_reviews) translated_reviews$french_review"},{"path":"https://tomeriko96.github.io/polyglotr/articles/polyglotr.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Introduction to polyglotr","text":"polyglotr package language translation tool R programming language. provides convenient functions translate text using different (free) translation services. vignette guide usage package demonstrate translate text files various languages.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/articles/polyglotr.html","id":"installation","dir":"Articles","previous_headings":"","what":"Installation","title":"Introduction to polyglotr","text":"can install polyglotr package CRAN using following command:","code":"library(polyglotr)"},{"path":[]},{"path":"https://tomeriko96.github.io/polyglotr/articles/polyglotr.html","id":"translating-text","dir":"Articles","previous_headings":"Basic usage","what":"Translating Text","title":"Introduction to polyglotr","text":"translate text using polyglotr package, can use mymemory_translate google_translate functions. ’s example translate simple phrase:","code":"text <- \"Hello, how are you?\" # Translate using MyMemory Translation API translation_mymemory <- mymemory_translate(text, target_language = \"fr\", source_language = \"en\") # Translate using Google Translate translation_google <- google_translate(text, target_language = \"fr\", source_language = \"en\") cat(translation_mymemory) cat(translation_google)"},{"path":"https://tomeriko96.github.io/polyglotr/articles/polyglotr.html","id":"translating-files","dir":"Articles","previous_headings":"Basic usage","what":"Translating Files","title":"Introduction to polyglotr","text":"package also provides function, translate_file, translate content file. ’s example: example, content file “file.txt” translated English French using Google Translate. translated content replaces original content overwrite parameter set TRUE. Otherwise, new file translated content created.","code":"# Translate the content of a file using Google Translate # translate_file(\"path/to/file.txt\", target_language = \"fr\", source_language = \"en\", overwrite = TRUE)"},{"path":"https://tomeriko96.github.io/polyglotr/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Tomer Iwan. Author, maintainer, copyright holder.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Iwan T (2024). polyglotr: Translate Text. R package version 1.5.2, https://tomeriko96.github.io/polyglotr/, https://github.com/Tomeriko96/polyglotr/.","code":"@Manual{, title = {polyglotr: Translate Text}, author = {Tomer Iwan}, year = {2024}, note = {R package version 1.5.2, https://tomeriko96.github.io/polyglotr/}, url = {https://github.com/Tomeriko96/polyglotr/}, }"},{"path":"https://tomeriko96.github.io/polyglotr/index.html","id":"polyglotr-","dir":"","previous_headings":"","what":"Translate Text","title":"Translate Text","text":"R package translate text.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Translate Text","text":"polyglotr package language translation tool R programming language. provides convenient functions translate text using different (free) translation services. vignette guide usage package demonstrate translate text files various languages. Currently, package functions communicate following services: Google Translate API Mymemory API Linguee API Pons API QCRI API Wikimedia Translation API","code":""},{"path":"https://tomeriko96.github.io/polyglotr/index.html","id":"features","dir":"","previous_headings":"","what":"Features","title":"Translate Text","text":"see functions available, please refer reference page polyglotr package. reference page provides comprehensive list functions available package, organized category. Additionally, package includes vignettes provide detailed information use functions package.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Translate Text","text":"install package: ```{r} # easiest way get polyglotr CRAN install.packages(“polyglotr”)","code":""},{"path":[]},{"path":"https://tomeriko96.github.io/polyglotr/index.html","id":"installpackagesremotes","dir":"","previous_headings":"","what":"install.packages(“remotes”)","title":"Translate Text","text":"remotes::install_github(“Tomeriko96/polyglotr”)","code":"# Usage To demonstrate the usage of the `polyglotr` package, let's consider an example where we translate a list of texts into multiple languages using the `create_translation_table` function. ```{r} texts <- c(\"Hello, how are you?\", \"I love programming!\", \"This is a test.\") languages <- c(\"es\", \"fr\", \"de\") create_translation_table(texts, languages) #> Original_word es #> 1 Hello, how are you? ¿Hola, cómo estás? #> 2 I love programming! ¡Me encanta programar! #> 3 This is a test. Esto es una prueba. #> fr de #> 1 Bonjour comment allez-vous? Hallo, wie geht's dir? #> 2 J'adore programmer ! Ich liebe Programmieren! #> 3 C'est un test. Das ist ein Test."},{"path":"https://tomeriko96.github.io/polyglotr/reference/batch_translate.html","id":null,"dir":"Reference","previous_headings":"","what":"Batch Translation Function — batch_translate","title":"Batch Translation Function — batch_translate","text":"function translates file target language using polyglotr package's translate_file function, saves translated files.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/batch_translate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Batch Translation Function — batch_translate","text":"","code":"batch_translate(input_file, source_language, target_languages)"},{"path":"https://tomeriko96.github.io/polyglotr/reference/batch_translate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Batch Translation Function — batch_translate","text":"input_file character string indicating path input file. source_language character string indicating source language. target_languages character vector indicating target languages.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/batch_translate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Batch Translation Function — batch_translate","text":"Nothing returned.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/batch_translate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Batch Translation Function — batch_translate","text":"","code":"if (FALSE) { # \\dontrun{ batch_translate(\"README.md\", \"nl\", c(\"fr\", \"es\", \"de\")) } # }"},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_translation_table.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Translation Table — create_translation_table","title":"Create a Translation Table — create_translation_table","text":"function generates translation table translating list words multiple languages.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_translation_table.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Translation Table — create_translation_table","text":"","code":"create_translation_table(words, languages)"},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_translation_table.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Translation Table — create_translation_table","text":"words character vector containing words translated. languages character vector specifying target languages translation.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_translation_table.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Translation Table — create_translation_table","text":"data frame representing translation table original words translations language.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_translation_table.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Translation Table — create_translation_table","text":"","code":"if (FALSE) { # \\dontrun{ words <- c(\"Hello\", \"Translate\", \"Table\", \"Script\") languages <- c(\"es\", \"fr\", \"de\", \"nl\") translations <- create_translation_table(words, languages) print(translations) } # }"},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_transliteration_table.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Transliteration Table — create_transliteration_table","title":"Create a Transliteration Table — create_transliteration_table","text":"function generates transliteration table transliterating list words multiple languages.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_transliteration_table.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Transliteration Table — create_transliteration_table","text":"","code":"create_transliteration_table(words, languages)"},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_transliteration_table.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Transliteration Table — create_transliteration_table","text":"words character vector containing words transliterated. languages character vector specifying target languages transliteration.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_transliteration_table.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Transliteration Table — create_transliteration_table","text":"data frame representing transliteration table original words transliterations language.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/create_transliteration_table.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Transliteration Table — create_transliteration_table","text":"","code":"if (FALSE) { # \\dontrun{ words <- c(\"Hello world\", \"Goodbye\", \"Thank you\", \"Please\") languages <- c(\"ar\", \"he\", \"el\", \"ru\", \"fa\") transliterations <- create_transliteration_table(words, languages) print(transliterations) } # }"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_get_supported_languages.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Supported Languages — google_get_supported_languages","title":"Get Supported Languages — google_get_supported_languages","text":"function fetches supported languages Google Cloud Translate documentation page.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_get_supported_languages.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Supported Languages — google_get_supported_languages","text":"","code":"google_get_supported_languages()"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_get_supported_languages.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Supported Languages — google_get_supported_languages","text":"data frame containing supported languages corresponding ISO 639-1 codes.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_is_valid_language_code.html","id":null,"dir":"Reference","previous_headings":"","what":"Check if a language code is valid — google_is_valid_language_code","title":"Check if a language code is valid — google_is_valid_language_code","text":"function checks given language code google_supported_languages dataset.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_is_valid_language_code.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check if a language code is valid — google_is_valid_language_code","text":"","code":"google_is_valid_language_code(language_code)"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_is_valid_language_code.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check if a language code is valid — google_is_valid_language_code","text":"language_code language code check.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_is_valid_language_code.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check if a language code is valid — google_is_valid_language_code","text":"logical value indicating language code valid.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_is_valid_language_code.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Check if a language code is valid — google_is_valid_language_code","text":"","code":"if (FALSE) { # \\dontrun{ google_is_valid_language_code(\"en\") # TRUE google_is_valid_language_code(\"fr\") # TRUE google_is_valid_language_code(\"xx\") # FALSE } # }"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_supported_languages.html","id":null,"dir":"Reference","previous_headings":"","what":"Google Supported Languages — google_supported_languages","title":"Google Supported Languages — google_supported_languages","text":"dataset contains language names iso codes languages supported Google Translate API.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_supported_languages.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Google Supported Languages — google_supported_languages","text":"","code":"google_supported_languages"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_supported_languages.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Google Supported Languages — google_supported_languages","text":"data frame two variables: language_name iso_code","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_supported_languages.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Google Supported Languages — google_supported_languages","text":"Google Translate API","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate.html","id":null,"dir":"Reference","previous_headings":"","what":"Translate text using google translate — google_translate","title":"Translate text using google translate — google_translate","text":"Translate text using google translate","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Translate text using google translate — google_translate","text":"","code":"google_translate(text, target_language = \"en\", source_language = \"auto\")"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Translate text using google translate — google_translate","text":"text text want translate. target_language language want translate text . default value argument \"en\" English. source_language language text want translate. default value argument \"auto\", means function try automatically detect language text.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Translate text using google translate — google_translate","text":"Translated text.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Translate text using google translate — google_translate","text":"","code":"# \\donttest{ google_translate(\"I love languages\", target_language = \"es\") #> [1] \"Me encantan los idiomas\" text_to_translate <- c(\"the\", \"quick\", \"brown\") google_translate(text_to_translate, \"fr\", \"en\") #> [[1]] #> [1] \"le\" #> #> [[2]] #> [1] \"rapide\" #> #> [[3]] #> [1] \"brun\" #> # }"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate_long_text.html","id":null,"dir":"Reference","previous_headings":"","what":"Translate long text using Google Translate — google_translate_long_text","title":"Translate long text using Google Translate — google_translate_long_text","text":"function translates long text one language another using Google Translate. splits text smaller chunks necessary handle large inputs.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate_long_text.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Translate long text using Google Translate — google_translate_long_text","text":"","code":"google_translate_long_text( text, target_language = \"en\", source_language = \"auto\", chunk_size = 1000 )"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate_long_text.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Translate long text using Google Translate — google_translate_long_text","text":"text long text translate. single string. target_language language translate text . Default \"en\" English. source_language language input text. Default \"auto\" automatic detection. chunk_size maximum number characters send single translation request. Default 1000.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate_long_text.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Translate long text using Google Translate — google_translate_long_text","text":"single string containing translated text.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_translate_long_text.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Translate long text using Google Translate — google_translate_long_text","text":"","code":"if (FALSE) { # \\dontrun{ long_text <- paste(rep(\"This is a long text to translate.\", 100), collapse = \" \") google_translate_long_text( long_text, target_language = \"de\", source_language = \"en\", chunk_size = 500) } # }"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_transliterate.html","id":null,"dir":"Reference","previous_headings":"","what":"Transliterate a single word or a sentence to the required language. — google_transliterate","title":"Transliterate a single word or a sentence to the required language. — google_transliterate","text":"Transliterate single word sentence required language.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_transliterate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transliterate a single word or a sentence to the required language. — google_transliterate","text":"","code":"google_transliterate(text, language_tag = \"el\", num = 5)"},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_transliterate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transliterate a single word or a sentence to the required language. — google_transliterate","text":"text word sentence transliterate Latin/Roman (English) script. language_tag target language's ISO639 code. default value argument \"el\" Greek. num maximum number suggestions fetch. default value argument 5.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_transliterate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transliterate a single word or a sentence to the required language. — google_transliterate","text":"Character vector transliterated sentences larger pieces text.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/google_transliterate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transliterate a single word or a sentence to the required language. — google_transliterate","text":"","code":"if (FALSE) { # \\dontrun{ google_transliterate(\"Hello world\", \"fr\", 10) google_transliterate(\"hello\", \"el\", 10) } # }"},{"path":"https://tomeriko96.github.io/polyglotr/reference/language_detect.html","id":null,"dir":"Reference","previous_headings":"","what":"Detect Language using Google Translate API — language_detect","title":"Detect Language using Google Translate API — language_detect","text":"function detects language given text using Google Translate API.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/language_detect.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Detect Language using Google Translate API — language_detect","text":"","code":"language_detect(text)"},{"path":"https://tomeriko96.github.io/polyglotr/reference/language_detect.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Detect Language using Google Translate API — language_detect","text":"text text language needs detected.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/language_detect.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Detect Language using Google Translate API — language_detect","text":"character string representing detected language.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/linguee_external_sources.html","id":null,"dir":"Reference","previous_headings":"","what":"Retrieve external sources using Linguee Translation API — linguee_external_sources","title":"Retrieve external sources using Linguee Translation API — linguee_external_sources","text":"Retrieve external sources using Linguee Translation API","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/linguee_external_sources.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Retrieve external sources using Linguee Translation API — linguee_external_sources","text":"","code":"linguee_external_sources(query, src, dst, limit = 5)"},{"path":"https://tomeriko96.github.io/polyglotr/reference/linguee_external_sources.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Retrieve external sources using Linguee Translation API — linguee_external_sources","text":"query word phrase want retrieve external sources. src source language word phrase. Accepts language codes \"en\", \"es\", \"fr\", etc. dst target language external source retrieval. Accepts language codes \"en\", \"es\", \"fr\", etc. limit maximum number external sources retrieve. Defaults 5.","code":""},{"path":"https://tomeriko96.github.io/polyglotr/reference/linguee_external_sources.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Retrieve external sources using Linguee Translation API — linguee_external_sources","text":"dataframe external sources columns: src, dst, src_url, dst_url.","code":""},{"path":[]},{"path":"https://tomeriko96.github.io/polyglotr/reference/linguee_external_sources.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Retrieve external sources using Linguee Translation API — linguee_external_sources","text":"","code":"# \\donttest{ linguee_external_sources(query = \"hello\", src = \"en\", dst = \"es\") #> # A tibble: 27 × 4 #> src dst src_url dst_url #>