Skip to contents

Transforms a term's value into a phrased string representation.

Usage

phrase(term, vals, lang = pal::pkg_config_val("lang"))

Arguments

term

Term to be phrased. A character scalar.

vals

Value(s) of term to be phrased. A character vector.

lang

Language. One of "de".

Value

A character scalar.

See also

Other text phrasing functions: phrase_date(), phrase_election_candidate(), phrase_proposal_name_de()

Examples

fokus::phrase(term = "side",
              vals = c("pro", "pro", "contra"),
              lang = "de")
#> [1] "Pro"    "Pro"    "Kontra"