get_prepositions {RCLabels} | R Documentation |
Extract prepositions from row and column labels
Description
This function extracts prepositions from a list of row and column labels. The list has outer structure of the number of labels and an inner structure of each prepositional phrase in the specific label.
Usage
get_prepositions(
labels,
inf_notation = TRUE,
notation = RCLabels::notations_list,
choose_most_specific = FALSE,
prepositions = RCLabels::prepositions_list
)
Arguments
labels |
The row and column labels from which prepositional phrases are to be extracted. |
inf_notation |
A boolean that tells whether to infer notation for |
notation |
The notation type to be used when extracting prepositions.
Default is |
choose_most_specific |
A boolean that tells whether to choose the most specific
notation from |
prepositions |
A vector of strings to be treated as prepositions.
Note that a space is appended to each word internally,
so, e.g., "to" becomes "to ".
Default is |
Value
A list of prepositions.
Examples
get_prepositions(c("a [of b into c]", "d [-> e of f]"))