R/detect_language.R
detect_language.RdDetect 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
|
A tibble containing at least one additional column: det_lang.
The underlying core function determining the language is textcat::textcat().