Skip to main content

identify_language

Function identify_language 

Source
pub fn identify_language(text: &str) -> LanguageIdentification
Expand description

Identifies natural languages using the default threshold of 0.1.

The sample covers the first 2,048 Unicode scalar values. Model-based script runs with fewer than three letters have no candidates. Han and Bengali runs can produce a candidate based on script evidence alone.