translate {ecce} | R Documentation |
Translate English words into Chinese, or translate Chinese words into English
Description
When you pass in an English or Chinese word, this function will calls the Youdao text translation API for R to return the corresponding type of Chinese or English representation.
Usage
translate(input, from = "auto", to = "auto")
Arguments
input |
An English or Chinese word. |
from |
The source language, an optional parameter. |
to |
The target language, an optional parameter. |
Value
A list consisting of Phonetic, explains, etc about target language.
Examples
# Example(Not run)
# translate("good")
# translate("quarto", from = "en", to = "zh-CHS")
[Package ecce version 2.0.6 Index]