Returns list of candidate languages in order of descending confidence. The response is an ordered list of identified languages, including language and identification confidence, sorted by descending confidence.

ros_language(content, genre = NULL, language = NULL)

Arguments

content
either a URI or character vector of content to process
genre
document genre (optional)
language
Language: ISO 639-3 code (optional)

Examples

ros_language("Por favor SeƱorita, says the man.")
#> $languageDetections #> language confidence #> 1 spa 0.38719602 #> 2 eng 0.32699987 #> 3 por 0.05569054 #> 4 deu 0.03006949 #> 5 swe 0.02773476 #> #>