R/clean_street_names.R

Defines functions remove_first_word

Documented in remove_first_word

#' Find if a string refers to a person, and if so, finds gender by searching Wikidata
#' 
#' @param string A character string.
#' @return A character string. 
#' @examples
#' 
#' remove_first_word(string = "via Garibaldi")
#' 
#' @export
#' 

remove_first_word <- function(string) {
  stringr::str_squish(string = stringr::str_remove(string = string, pattern = "\\w+"))
}
giocomai/genderedstreetnames documentation built on June 21, 2020, 8:31 p.m.