detect_language | R Documentation |
Detect the language that the abstract or other fields are written in
detect_language( CitDat, fieldsToDetectIn = c("Abstract"), wantedLanguage = c("english") )
CitDat |
A dataframe/tibble possibly returned by |
fieldsToDetectIn |
Character vector with names of fields whose text
language should be detected. Default is |
wantedLanguage |
Character vector with names of languages that are desired. Default is
|
The underlying core function determining the language is textcat::textcat()
.
A tibble containing at least one additional column: det_lang
.
example_path <- example_file("3dupsin5refs/3dupsin5refs.ctv6") read_Citavi_ctv6(example_path) %>% detect_language() %>% dplyr::select(Abstract, det_lang, det_lang_wanted)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.