dc_oh: Extract Oh Discourse Connectors in Context

Description Usage Arguments Details Value References See Also Examples

Description

dc_oh - Extract oh discourse connectors (a marker Schiffrin (1987) terms a marker of "information management") in context.

dc_oh_begin - An extension of dc_oh that requires the "oh" to come at the begining of the word.

Usage

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

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

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 oh discourse connectors. Use c("", "") to not mark the oh 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.

inds

A list of integer indices to print context for.

...

Other arguments passed to termco.

Details

"Oh" is seen as an “exclamation or interjection” (p. 73). Schiffrin (1987) considers broad functions of the use of "oh" in (a) “repairs”, (b) “question/answer/acknowledgement sequences”, (c) to “mark a shift in the speaker's orientation to information”, and (d) to shift “subjective orientation” (pp. 74-98).

An internal function in dc_oh_begin ensures that each line has no more than n words before the "oh". The defaut number of words is 0 or less. This can be changed by supplying an argument to n via control. For example to set the number of words to 2, use: control = list(n = 2)).

Value

Returns returns a list of 2:

counts

A termco object of oh discourse marker counts.

oh

A trans_context object of oh discourse connectors in context.

References

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

See Also

termco, trans_context

Examples

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

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

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