dc_connective: Extract Connective Discourse Connectors in Context

Description Usage Arguments Details Value References See Also Examples

Description

dc_connective - Extract connective discourse connectors (i.e., "and", "but", & "or" collectively termed discourse connectives (Schiffrin, 1987)) in context.

dc_connective_sub - Extract connective discourse connectors ("and", "but", & "or") in context.

Usage

1
2
3
4
5
6
7
dc_connective(text.var, grouping.var, n.before = 1, tot = FALSE,
  n.after = n.before, ord.inds = TRUE, markup = c("<<", ">>"),
  name = "connective", ...)

dc_connective_sub(text.var, grouping.var, n.before = 1, tot = FALSE,
  n.after = n.before, ord.inds = TRUE, markup = c("<<", ">>"),
  name = "connective_sub", ...)

Arguments

text.var

The text variable.

grouping.var

The grouping variables. Also takes a single grouping variable or a list of 1 or more grouping variables.

n.before

The number of rows before the indexed occurrence.

tot

logical. If TRUE condenses sub-units (e.g., sentences) into turns of talk for that grouping.var.

n.after

The number of rows after the indexed occurrence.

ord.inds

logical. If TRUE inds is ordered least to greatest.

markup

A character vector of length two indicating the left (element 1) and right (element 2) boundary markers to use to highlight the connective discourse connectors. Use c("", "") to not mark the connective discourse markers.

name

A string indicating the name to search for within the internal data sets, typically the function's name. Generally, for internal use.

...

Other arguments passed to termco.

Details

Schiffrin (1987) describes the funtion of these three coordinating conjunctions:

While "and" and "but" are more speaker centered, "or" is more hearer centered.

Value

dc_connective - Returns returns a list of 2:

counts

A termco object of connective discourse connector counts.

connective

A trans_context object of connective discourse connectors in context.

dc_connective_sub - Returns returns a list of 4:

counts

A termco object of connective discourse connector counts.

and

A trans_context object of "and" discourse connectors in context.

but

A trans_context object of "but" discourse connectors in context.

or

A trans_context object of "or" discourse connectors in context.

References

Schiffrin, D. (1987). Discourse markers. (pp. 128-190). London: Cambridge University Press.

See Also

termco, trans_context

Examples

1
2
3
4
5
6
7
out <- with(pres_debates2012[1:200, ], dc_connective(dialogue, person))
out[1]
out[2]
plot(out)

## Save externally use .doc or .txt
## print(out[[2]], file="connective_causality.doc")

trinker/discon documentation built on May 31, 2019, 8:42 p.m.