Reverse the order of a text's paragraphs or sentences
Source:R/doc-bench-condense.R
gr_reverse_text.RdTurns a document around, unit by unit, so a reader that goes through it
in order meets the end first. Paragraphs are split at blank lines;
sentences at a full stop, question mark or exclamation mark followed by
white space. The units are joined as they were split, by a blank line or a
space. gr_condensation_check() reads each planted document forwards and
reversed with it.
Usage
gr_reverse_text(text, unit = c("paragraph", "sentence"))See also
Other harness:
gr_arm(),
gr_condensation_check(),
gr_qa_reference(),
gr_scorer_answer(),
hr_arm(),
hr_benchmark(),
hr_chain(),
hr_contrast(),
hr_drift_check(),
hr_effort_check(),
hr_effort_escalate(),
hr_effort_event(),
hr_effort_log(),
hr_mdd(),
hr_modules(),
hr_reference(),
hr_register(),
hr_report(),
hr_scorer(),
hr_set(),
hr_settings(),
hr_skill(),
hr_step(),
hr_step_command(),
hr_sweep(),
hr_sweep_check()