ar_wordlist_export() exports a table of responses for manual spelling correction.
Usage
ar_wordlist_export(
associations,
file = "wordlist_correction.csv",
check_spelling = TRUE,
check_acronym = TRUE
)Arguments
- associations
an
associatoRobject containing association data as generated by ar_import.- file
a
characterstring specifying the filename including folders. Default is"wordlist_correction.csv".- check_spelling
a
logicalspecifying whether to include a column identifying likely mispelled words based on the spell_check_text. Note that currently the spell check only works for English associations. Default isTRUE.- check_acronym
a
characterspecifying whether to include columns identifying potential acronyms. Acronyms are identified in two first. First, responses are checked against a Wikipedia list ("https://en.wikipedia.org/wiki/Lists_of_acronyms"). Matching of the original and lower-case responses triggers "likely an acronym" and "potentially an acronym". The matched acronym is spelled out in an additional column namedacronym_candidate. Second, the a simple acronym detection based on letter casing also triggers "likely an acronym" but does not produce values inacronym_candidate. Default isTRUE.
Examples
ar_obj = ar_import(intelligence,
participant = participant_id,
cue = cue,
response = response,
participant_vars = c(gender, education),
response_vars = c(response_position, response_level)) %>%
ar_normalize_manual(trimws, which = "left")
ar_wordlist_export(ar_obj)