Learn R Programming

polyglotr (version 1.6.0)

wikimedia_detect_language: Detect the language of a text

Description

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.

Usage

wikimedia_detect_language(text)

Value

The detected language.

Arguments

text

The text whose language is to be detected.

Examples

Run this code
# Detect the language of a text
wikimedia_detect_language("Hallo, wereld")

Run the code above in your browser using DataLab