dot-split_sections: Split Wikitext into Sections

.split_sectionsR Documentation

Split Wikitext into Sections

Description

Split Wikitext into Sections

Usage

.split_sections(wt, depth, keep_first = TRUE)

Arguments

wt

The word's page, in wikitext format (returned by .fetch_word), or a subsection thereof.

depth

Integer; the heading depth (the number of ='s before the heading).

keep_first

Whether to keep front matter before the first section.

Value

A named character vector of the sections.


jonthegeek/wikimorphemes documentation built on Sept. 1, 2022, 10:32 p.m.