augur.curate.abbreviate_authors module

Abbreviates a full list of authors to be ‘<first author> et al.’ of the NDJSON record from stdin and outputs modified records to stdout.

Note: This is a “best effort” approach and can potentially mangle the author name.

augur.curate.abbreviate_authors.parse_authors(record, authors_field, default_value, index, abbr_authors_field=None)
Return type:

dict

augur.curate.abbreviate_authors.register_parser(parent_subparsers)
Return type:

_SubParsersAction

augur.curate.abbreviate_authors.run(args, records)
Return type:

Generator[dict, None, None]