extract_title: Extract first sentence from text

View source: R/text_tools.R

extract_titleR Documentation

Extract first sentence from text

Description

A lot of information is contained in the first sentence of a text. In political texts, for example, dates and locations are often contained in the first sentence of the text.

Usage

extract_title(v)

Arguments

v

Text vector.

Value

A list of the first sentences in text.

Examples

extract_title("This is the first sentence. This is the second sentence.")

henriquesposito/poldis documentation built on Sept. 8, 2024, 5:38 a.m.