Learn R Programming

orderanalyzer (version 1.0.0)

identifyLanguage: Identifies the language of a given text based on frequent trigrams

Description

This function identifies the language of a given string based on the most frequent trigrams in different languages. Supported languages are Czech, Dutch, English, French, German, Spanish, Latvian and Lithuanian.

Usage

identifyLanguage(text)

Value

Name of the detected language.

Arguments

text

String for which the language should be identified

Examples

Run this code

text <- "The tea in the cup still is hot."
language <- identifyLanguage(text)
language

Run the code above in your browser using DataLab