A helper function to extract distinctive collocates/collexemes for construction/word X from the output of collex_fye_dca.

dca_top_collex(dca_res, dist_for = NULL, top_n = 20L)

Arguments

dca_res

The output of collex_fye_dca

dist_for

Character vectors of names of the contrasted constructions, or either "a"/"A", or "b"/"B". This argument indicate the preference of the collexeme/collocates (i.e. whether to Construction A or B). Construction A is the name for the second column from the output of collex_fye_dca. Construction B is the name for the third column from the output of collex_fye_dca.

top_n

Integer for the top-n distinctive collocates/collexemes. The default is 20L.

Value

A data frame of distinctive collocates/collexemes for construction X.

Examples

if (FALSE) { # distinctive for CxN B dca_top_collex(dca_res, "b") # distinctive for CxN A dca_top_collex(dca_res, "a") }