get_pps: Extract prepositional phrases of row and column labels

View source: R/extractors.R

get_ppsR Documentation

Extract prepositional phrases of row and column labels

Description

This function extracts the suffix of a row or column label as a single string.

Usage

get_pps(
  labels,
  notation = RCLabels::bracket_notation,
  prepositions = RCLabels::prepositions
)

Arguments

labels

A list or vector of labels from which nouns are to be extracted.

notation

The notation type to be used when extracting nouns. Default is RCLabels::bracket_notation.

prepositions

A list of prepositions, used to detect prepositional phrases. Default is RCLabels::prepositions.

Value

All prepositional phrases in a suffix.

Examples

get_pps(c("a [in b]", "c [of d]"))
get_pps(c("a [of b in c]", "d [-> e of f]"))

RCLabels documentation built on March 18, 2022, 7:19 p.m.