Returns the translation of a name. You must specify the name to translate and the target language for the translation.

ros_name_translation(name, target_language, target_scheme = NULL,
  target_script = NULL, entity_type = NULL, source_language_origin = NULL,
  source_language_use = NULL, source_script = NULL)

Arguments

name
string (name) to be translated
target_language
ISO 639-3 code for the translation langauge
target_scheme
transliteration scheme for the translation (optional)
target_script
ISO 15924 code for the translation script (optional)
entity_type
the entity type of the text. One of PERSON, LOCATION or ORGANIZATION (optional)
source_language_origin
ISO 639-3 code for the name's language of origin (optional)
source_language_use
ISO 639-3 code for the name's language of use (optional)
source_script
ISO 15924 code for the name's script (optional)

Examples

ros_name_translation("معمر محمد أبو منيار القذاف", "eng")
#> $translation #> [1] "Mu'ammar Muhammad Abu-Minyar al-Qadhaf" #> #> $targetLanguage #> [1] "eng" #> #> $targetScript #> [1] "Latn" #> #> $targetScheme #> [1] "IC" #> #> $confidence #> [1] 0.06856099 #> #>