literature

parse.literature

Handling studies

Functions

Name Description
format_authors Format the authors list for citations.
render_citation Render a citation as either a BibTeX entry or an APA citation.

format_authors

parse.literature.format_authors(authors_list)

Format the authors list for citations.

Parameters

Name Type Description Default
authors_list list The list of authors. required

Returns

Name Type Description
list List[str] A list of formatted author names.

render_citation

parse.literature.render_citation(citation, style='apa')

Render a citation as either a BibTeX entry or an APA citation.

Parameters

Name Type Description Default
citation owlready2 instance An instance with citation details. required
style str The citation style (‘bibtex’ or ‘apa’). 'apa'

Returns

Name Type Description
str str The formatted citation.