{"id":32203835,"url":"https://github.com/tomeriko96/polyglotr","last_synced_at":"2026-02-21T18:04:30.823Z","repository":{"id":65502579,"uuid":"531541370","full_name":"Tomeriko96/polyglotr","owner":"Tomeriko96","description":"R package to translate text","archived":false,"fork":false,"pushed_at":"2026-01-18T14:02:08.000Z","size":6904,"stargazers_count":41,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-18T21:52:36.048Z","etag":null,"topics":["cran","cran-r","google-translate","googletranslate","language","linguee","mymemory-api","mymemorytranslator","package","pons","r","rpackage","rstats","translation","translations-api"],"latest_commit_sha":null,"homepage":"https://tomeriko96.github.io/polyglotr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tomeriko96.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-01T13:52:49.000Z","updated_at":"2026-01-18T13:59:09.000Z","dependencies_parsed_at":"2026-01-18T16:06:01.927Z","dependency_job_id":null,"html_url":"https://github.com/Tomeriko96/polyglotr","commit_stats":{"total_commits":69,"total_committers":3,"mean_commits":23.0,"dds":0.5217391304347826,"last_synced_commit":"d942f6ed6153e2ded840d99d2ffbf3a01d9a0cfc"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Tomeriko96/polyglotr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomeriko96%2Fpolyglotr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomeriko96%2Fpolyglotr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomeriko96%2Fpolyglotr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomeriko96%2Fpolyglotr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tomeriko96","download_url":"https://codeload.github.com/Tomeriko96/polyglotr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomeriko96%2Fpolyglotr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29689644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cran","cran-r","google-translate","googletranslate","language","linguee","mymemory-api","mymemorytranslator","package","pons","r","rpackage","rstats","translation","translations-api"],"created_at":"2025-10-22T04:46:28.785Z","updated_at":"2026-02-21T18:04:30.817Z","avatar_url":"https://github.com/Tomeriko96.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"man/figures/hex-polyglotr.png\" alt=\"polyglotr\" height=\"200\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003epolyglotr | Multilingual Text Translation\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eVersatile R Package for Text Translation\u003c/strong\u003e\u003cbr\u003e\n  Seamless integration with multiple free translation services for R users.\u003cbr\u003e\n  \u003csub\u003eIdeal for translating text, files, and creating multilingual datasets.\u003c/sub\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch3\u003e\n    \u003ca href=\"https://CRAN.R-project.org/package=polyglotr/\"\u003eCRAN\u003c/a\u003e \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"#contribution\"\u003eContribution\u003c/a\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003csub\u003eBuilt by \u003ca href=\"https://github.com/Tomeriko96\"\u003eTomeriko96\u003c/a\u003e and \u003ca href=\"https://github.com/Tomeriko96/polyglotr/graphs/contributors\"\u003econtributors\u003c/a\u003e.\u003c/sub\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://app.codecov.io/gh/tomeriko96/polyglotr?branch=main\"\u003e\u003cimg src=\"https://codecov.io/gh/tomeriko96/polyglotr/branch/main/graph/badge.svg\" alt=\"Codecov test coverage\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/Tomeriko96/polyglotr/actions/workflows/R-CMD-check.yaml\"\u003e\u003cimg src=\"https://github.com/Tomeriko96/polyglotr/actions/workflows/R-CMD-check.yaml/badge.svg\" alt=\"R-CMD-check\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://CRAN.R-project.org/package=polyglotr/\"\u003e\u003cimg src=\"https://www.r-pkg.org/badges/version/polyglotr\" alt=\"CRAN status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://cran.r-project.org/package=polyglotr/\"\u003e\u003cimg src=\"https://cranlogs.r-pkg.org/badges/last-month/polyglotr?color=green/\" alt=\"CRAN last month downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://cran.r-project.org/package=polyglotr/\"\u003e\u003cimg src=\"https://cranlogs.r-pkg.org/badges/grand-total/polyglotr?color=green/\" alt=\"CRAN downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://diffify.com/R/polyglotr\" target=\"_blank\"\u003e\u003cimg src=\"https://diffify.com/diffify-badge.svg\" alt=\"The diffify page for the R package polyglotr\" style=\"width: 100px; max-width: 100%;\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://edulytics.shinyapps.io/polyglotr/\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Shiny%20App-Live-blue?logo=R\" alt=\"Shiny App Deployed\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n## Table of Contents\n- [Overview](#overview-)\n- [Features](#features-)\n- [Installation](#installation-)\n- [Quick Start](#quick-start-)\n- [Shiny Web App](#shiny-web-app-)\n- [Usage](#usage-)\n- [Troubleshooting](#troubleshooting-)\n- [Contribution](#contribution-)\n- [License](#license-️)\n- [Citation](#citation-)\n- [Related Projects](#related-projects-)\n\n\n\n# Overview\n\nThe `polyglotr` package is a language translation tool for the R programming language. It provides convenient functions to translate text using different (free) translation services. This vignette will guide you through the usage of the package and demonstrate how to translate text and files in various languages.\n\nCurrently, the package has functions to communicate with the following services:\n\n-   [Google Translate](https://translate.google.com/m) API\n-   [Apertium](https://apertium.org/apy/) API\n-   [Mymemory](https://mymemory.translated.net/) API\n-   [Linguee](https://www.linguee.com/) API\n-   [Pons](https://en.pons.com/translate) API\n-   [QCRI](https://mt.qcri.org/api/) API\n-   [Wikimedia Translation](https://translate.wmcloud.org/) API\n\n\n## Why polyglotr?\n\n`polyglotr` offers a streamlined translation experience for R users:\n\n- **No API Keys Required** - Start translating immediately after installation\n- **Multiple Services** - Access 7 translation services through one interface\n- **R-Native Integration** - Seamlessly incorporate translation into data workflows\n- **Flexible Usage** - Translate single phrases, datasets, or entire files\n- **Open Source** - Community-driven with comprehensive documentation\n\n\n\n# Features\n\n- Translate text using multiple free translation services\n- Batch translation capabilities\n- Language detection\n- Create translation tables for multiple languages\n- File translation\n- Easy-to-use interface for different translation APIs\n- **NEW: Interactive Shiny web application for non-R users**\n\nTo see which functions are available, please refer to the reference page of the `polyglotr` package. The [reference](https://Tomeriko96.github.io/polyglotr/reference/index.html) page provides a comprehensive list of functions available in the package, organized by category.\n\nAdditionally, the package includes vignettes that provide more detailed information on how to use the functions in the package.\n\n\n# Installation\n\n## System Requirements\n\n- R (\u003e= 3.6.0)\n- Internet connection for translation services\n- Optional for Shiny app: `shiny`, `shinydashboard`, `DT`\n\n## Install Package\n\n```{r}\n# The easiest way is to get polyglotr from CRAN\ninstall.packages(\"polyglotr\")\n\n# Alternatively, install the development version from GitHub\n# install.packages(\"remotes\")\nremotes::install_github(\"Tomeriko96/polyglotr\")\n```\n\n\n\n# Quick Start\n\nHere's a minimal example to get you started: \n\n```{r}\nlibrary(polyglotr)\n\n# Translate a simple phrase using Google Translate\ntext \u003c- \"Hello, world!\"\ntranslation \u003c- google_translate(text, target_language = \"fr\")\nprint(translation)\n\n# Translate using Apertium (no API key required)\ntranslation_apertium \u003c- apertium_translate(text, target_language = \"es\", source_language = \"en\")\nprint(translation_apertium)\n```\n \n\n\n# Shiny Web App\n\n\u003ca href=\"https://edulytics.shinyapps.io/polyglotr/\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Shiny%20App-Live-blue?logo=R\" alt=\"Shiny App Deployed\"\u003e\u003c/a\u003e\n\n`polyglotr` includes a web application for translation services, accessible to users without R programming knowledge.\n\n## Launching the App\n\n```r\nlibrary(polyglotr)\nlaunch_polyglotr_app()\n# Or with custom settings\nlaunch_polyglotr_app(port = 3838, launch.browser = TRUE)\n```\n\n## App Features\n\n- Multiple translation services: Google Translate, MyMemory, PONS, Linguee, QCRI, Apertium, Wikimedia Cloud\n- Language detection\n- Dynamic language selection based on service\n- User-friendly dashboard interface\n- No coding required\n\n## Installation Requirements\n\nTo use the Shiny app, install these additional packages:\n\n```r\ninstall.packages(c(\"shiny\", \"shinydashboard\", \"DT\"))\n```\n\n\n\n# Usage\n\nTo 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.\n\n```{r}\ntexts \u003c- c(\"Hello, how are you?\", \n           \"I love programming!\", \n           \"This is a test.\")\n\nlanguages \u003c- c(\"es\", \n              \"fr\", \n              \"de\")\n\n\ncreate_translation_table(texts, languages)\n\n\n#\u003e        Original_word                     es\n#\u003e 1 Hello, how are you?     ¿Hola, cómo estás?\n#\u003e 2 I love programming! ¡Me encanta programar!\n#\u003e 3     This is a test.    Esto es una prueba.\n#\u003e                           fr                       de\n#\u003e 1 Bonjour comment allez-vous?   Hallo, wie geht's dir?\n#\u003e 2        J'adore programmer ! Ich liebe Programmieren!\n#\u003e 3              C'est un test.        Das ist ein Test.\n\n```\n\n\n# Troubleshooting\n\n## Common Issues\n\n**Translation fails or returns empty results**\n- Check your internet connection\n- Verify the target language is supported by the chosen service\n- Some services have rate limits - try again later\n\n**Shiny app won't launch**\n- Ensure required packages are installed: `install.packages(c(\"shiny\", \"shinydashboard\", \"DT\"))`\n- Check if the specified port is available\n\n**Language detection not working**\n- Not all services support language detection\n- Try using a different translation service\n\n## Getting Help\n\n- [Package Website](https://Tomeriko96.github.io/polyglotr/)\n- [Reference Manual](https://Tomeriko96.github.io/polyglotr/reference/index.html)\n- [Vignettes](https://Tomeriko96.github.io/polyglotr/articles/)\n- [GitHub Issues](https://github.com/Tomeriko96/polyglotr/issues)\n\n\n\n# Contribution\n\nContributions are welcome! If you'd like to contribute, please:\n\n1. Fork the repository\n2. Create your feature branch (git checkout -b feature/AmazingFeature)\n3. Commit your changes (git commit -m 'Add some AmazingFeature')\n4. Push to the branch (git push origin feature/AmazingFeature)\n5. Open a Pull Request\n\n\n# License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\n\n# Citation\n\nIf you use polyglotr in your research, please cite it as follows:\n\n\n```\nIwan, T. (2023). polyglotr: Multilingual Text Translation in R. R package version 1.0.0.\nhttps://github.com/Tomeriko96/polyglotr\n```\n\n\n\n# Related Projects\n\n- [googleLanguageR](https://github.com/ropensci/googleLanguageR): R client for the Google Translation API, Cloud Natural Language API, Cloud Speech API, and Cloud Text-to-Speech API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomeriko96%2Fpolyglotr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomeriko96%2Fpolyglotr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomeriko96%2Fpolyglotr/lists"}