as_basic: Convert Tags to Basic Tags

Description Usage Arguments Details Value References Examples

Description

Convert the Penn Treebank tags to basic part of speech tags.

Usage

1

Arguments

x

A tag_pos object or a named list of vectors.

...

ignored.

Details

Basic tags include: (a) nouns, (b) adjectives, (c) prepositions, (d) articles, (e) verbs, (f) pronouns, (g) adverbs, (h) interjections, & (i) conjunctions. The X and . tags are retained for punctuation and unclassified parts of speech. This tagset can be useful for more coarse purposes, including formality (Heylighen & Dewaele, 2002) scoring.

Value

Returns a combined character vector of words and universal tags.

References

Heylighen, F., & Dewaele, J.M. (2002). Variation in the contextuality of language: An empirical measure. Context in Context, Special issue of Foundations of Science, 7 (3), 293-340.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
(x <- tag_pos("They refuse to permit us to obtain the refuse permit"))
as_basic(x)

(out1 <- tag_pos(sam_i_am))
as_basic(out1)

presidential_debates_2012_pos
as_basic(presidential_debates_2012_pos)

library(dplyr)
presidential_debates_2012_pos %>%
    as_basic() %>%
    count_tags(grouping.var=presidential_debates_2012[["person"]]) %>%
    plot()

trinker/tagger documentation built on May 31, 2019, 10:42 p.m.