wikimedia_detect_language {polyglotr}R Documentation

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)

Arguments

text

The text whose language is to be detected.

Value

The detected language.

Examples

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


[Package polyglotr version 1.5.1 Index]