standardise_treaty_text: Standardise treaty texts

View source: R/standardise_treaty_text.R

standardise_treaty_textR Documentation

Standardise treaty texts

Description

The function standardises treaty texts by removing punctuation and markers, while splitting these texts into articles and annexes.

Usage

standardise_treaty_text(textvar)

standardize_treaty_text(textvar)

Arguments

textvar

A text variable.

Details

Treaty texts are not always similar when imported to R. Some treaty texts, for example, contain paragraph markers while others come in one text chunk. standardise_treaty_text() facilitates the cleaning and annotation of these treaty texts so that information about clauses can be retrieved at a later stage with the retrieve_clauses() function.

Value

A list of treaty sections of the same length.

Examples

## Not run: 
standardise_treaty_text(sample(manyenviron::agreements$HUGGO$MainText, 30))

## End(Not run)

globalgov/qCreate documentation built on April 27, 2023, 3:27 a.m.