extract_acronyms: Find acronyms in parentheses

View source: R/extract_acronyms.R

extract_acronymsR Documentation

Find acronyms in parentheses

Description

This function searches for words preceding the acronym that start with the same initial letter and will likely fail in many situations.

Usage

extract_acronyms(txt)

Arguments

txt

A tibble from pmc_text or character vector

Value

A tibble with acronyms

Author(s)

Chris Stubben

Examples

txt <- c(
  "An acronym like multinucleated giant cell (MGC)",
  "is later mentioned as MGC in the paper.")
extract_acronyms(txt)

tidypmc documentation built on Sept. 11, 2024, 7:17 p.m.