Description Usage Arguments Value See Also Examples
Returns the scores for all languages that use the same script as the input text, in decreasing order of probability. The score is calculated from the distances of the trigram distributions in the input text and in the language model. The closer the languages, the higher the score. Scores are scaled, so that the closest language will have a score of 1.
1 2 |
text |
A string constant. Should be at least |
min_speakers |
Languages with at least this many speakers are
checked. By default this is one million. Set it to zero to
include all languages known by franc. See also |
whitelist |
List of three letter language codes to check against. |
blacklist |
List of three letter language codes not to check againts. |
min_length |
Minimum number of characters required in the text. |
max_length |
Maximum number of characters used from the text. By default only the first 2048 characters are used. |
A data frame with columns language
and score
.
The language
column contains the three letter ISO-639-3
language codes. The score
column contains the scores.
franc
if you only want the top result,
speakers
.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.