Learn R Programming

contentanalysis (version 0.2.1)

normalize_references_section: Normalize references section formatting

Description

Normalizes the References section to ensure each reference is separated by double newlines and internal line breaks are removed.

Usage

normalize_references_section(text_sections)

Value

Modified text_sections list with normalized References

Arguments

text_sections

Named list from split_into_sections()

Details

Detects reference start patterns (Author, Initial.) and ensures consistent formatting with \n\n separators between references.

Examples

Run this code
if (FALSE) {
sections <- split_into_sections(text, "paper.pdf")
sections <- normalize_references_section(sections)
}

Run the code above in your browser using DataLab