View source: R/standardise_treaty_text.R
standardise_treaty_text | R Documentation |
The function standardises treaty texts by removing punctuation and markers, while splitting these texts into articles and annexes.
standardise_treaty_text(textvar)
standardize_treaty_text(textvar)
textvar |
A text variable. |
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.
A list of treaty sections of the same length.
## Not run:
standardise_treaty_text(sample(manyenviron::agreements$HUGGO$MainText, 30))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.