A categorical trait value's description may list synonyms using the convention (Synonyms, first, second). Shared by process_replace_synonyms() (which applies these as database-wide replacements) and test_dataset()'s check that a dataset's substitutions replace values are legitimate trait terms – canonical or synonym.

util_extract_synonyms(description)

Arguments

description

Character scalar, a trait value's description text

Value

Character vector of lower-cased, trimmed synonyms; character(0) if the description declares none