powered by
Normalizes the References section to ensure each reference is separated by double newlines and internal line breaks are removed.
normalize_references_section(text_sections)
Modified text_sections list with normalized References
Named list from split_into_sections()
Detects reference start patterns (Author, Initial.) and ensures consistent formatting with \n\n separators between references.
if (FALSE) { sections <- split_into_sections(text, "paper.pdf") sections <- normalize_references_section(sections) }
Run the code above in your browser using DataLab