wikimedia_detect_language {polyglotr} | R Documentation |
This function sends a POST request to the Wikimedia Language ID API with the specified text, parses the JSON response, and returns the detected language.
wikimedia_detect_language(text)
text |
The text whose language is to be detected. |
The detected language.
# Detect the language of a text
wikimedia_detect_language("Hallo, wereld")