You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
398 B
13 lines
398 B
#' Parts of speech
|
|
#'
|
|
#' @usage
|
|
#' parts_of_speech("The ripe taste of cheese improves with age.")
|
|
#' @param x words
|
|
#' @return (list) one vector with words, one with parts of speech
|
|
#' @export
|
|
#' @examples
|
|
#' parts_of_speech("The ripe taste of cheese improves with age.")
|
|
parts_of_speech <- function(x) {
|
|
res <- .Call("part_of_speech", x)
|
|
as.data.frame(stats::setNames(res, c("name", "tag")))
|
|
}
|