GodsDevProject commited on
Commit
ad6a83b
·
verified ·
1 Parent(s): db0025f

Create ingest/utils.py

Browse files
Files changed (1) hide show
  1. ingest/utils.py +2 -9
ingest/utils.py CHANGED
@@ -1,9 +1,2 @@
1
- def format_bluebook_citation(r: dict) -> str:
2
- """
3
- Court-ready, conservative Bluebook-style citation
4
- """
5
- return (
6
- f"{r.get('source')}, "
7
- f"{r.get('title')}, "
8
- f"available at {r.get('url')}."
9
- )
 
1
+ def bluebook_citation(doc):
2
+ return f"{doc['source']}, {doc['title']} ({doc['url']})"