wikimedia_detect_language: Detect the language of a text

View source: R/wikimedia_detect_language.R

wikimedia_detect_languageR 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")


polyglotr documentation built on Sept. 11, 2024, 6:35 p.m.