identifyLanguage {orderanalyzer}R Documentation

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)

Arguments

text

String for which the language should be identified

Value

Name of the detected language.

Examples


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


[Package orderanalyzer version 1.0.0 Index]