get_creative_metaphors: Retrieve the top-10 creative metaphors

Description Usage Arguments Value References Examples

View source: R/get_creative_metaphors.R

Description

This function calls the script to output the top-10 metaphors that have high index of lexical creativity in their linguistic manifestation. The lexical creativity is derived from the type-per-token ratio (TTR) measure (Rajeg, 2019, Chapter 6).

Usage

1
get_creative_metaphors(df_ttr_out = NULL, min_token = 3, top_n_limit = 10)

Arguments

df_ttr_out

the tibble as the output of ttr.

min_token

minimum token frequency of the metaphors.

top_n_limit

limit for presenting the top-n most lexically diverse metaphors.

Value

A tibble data frame.

References

Rajeg, G. P. W. (2019). Metaphorical profiles and near-synonyms: A corpus-based study of Indonesian words for HAPPINESS (PhD Thesis). Monash University. Melbourne, Australia. https://doi.org/10.26180/5cac231a97fb1.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# get the ttr table
ttr_metaphor <- ttr(phd_data_metaphor,
                    schema_var = "metaphors",
                    lexunit_var = "lu",
                    float_digits = 2)

# get the lexically diverse metaphors
get_creative_metaphors(df_ttr_out = ttr_metaphor,
                       min_token = 3,
                       top_n_limit = 10)

gederajeg/happyr documentation built on Dec. 27, 2021, 3:24 a.m.