end_mark: Sentence End marks

Description Usage Arguments Value Examples

Description

Grab the sentence end marks for a transcript. This can be useful to categorize based on sentence type.

Usage

1
  end_mark(text.var)

Arguments

text.var

The text variable.

Value

Returns a character vector of qdap end marks for each sentence. End marks include:

"."

Declarative sentence.

"?"

Question sentence.

"!"

Exclamatory sentence.

"|"

Incomplete sentence.

"*."

Imperative-declarative sentence.

"*?"

Imperative-question sentence (unlikely to occur)

"*!"

Imperative-exclamatory sentence.

"*|"

Imperative-incomplete sentence.

"no.em"

No end mark.

"blank"

Empty cell/NA.

Examples

1
2
3
4
5
6
7
8
end_mark(DATA$state)
end_mark(mraja1spl$dialogue)
ques <- mraja1spl[end_mark(mraja1spl$dialogue) == "?", ] #grab questions
htruncdf(ques)
non.ques <- mraja1spl[end_mark(mraja1spl$dialogue) != "?", ] #non questions
htruncdf(non.ques, 20)
ques.per <- mraja1spl[end_mark(mraja1spl$dialogue) %in% c(".", "?"), ] #grab ? and .
htruncdf(ques.per, 20)

trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.