Skip to content

Commit

Permalink
chore(filter_citations): Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
flooie committed Jan 22, 2025
1 parent 6184921 commit 5edc50d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eyecite/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,12 @@ def disambiguate_reporters(


def filter_citations(citations: List[CitationBase]) -> List[CitationBase]:
"""Filter and order citations that may have reference cites out of order
"""Filter and order citations, ensuring reference citations are in sequence
This function resolves rare but possible overlaps between ref. citations
and short citations. It also orders all citations by their `citation.span`,
as reference citations may be extracted out of order. The final result is a
properly sorted list of citations as they appear in the text
:param citations: List of citations
:return: Sorted and filtered citations
Expand Down

0 comments on commit 5edc50d

Please sign in to comment.