Description Usage Arguments Examples
View source: R/text-functions.R
This function checks if given percentage of text is in a certain language where the user supplies the list of words. For English, can use getEnglishWords() function.
1 | languagecheck(text, language_list, threshold = 2/3)
|
text |
Character string to search. |
language_list |
Object containing list of words for a given language. |
threshold |
Value in (0, 1] above which text is considered to be a match for the language. Set to 2/3 by default. |
1 | languagecheck(text = some_text, language_list = eng_words, threshold = 2/3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.