Spaces:
Sleeping
Sleeping
Create ingest/utils.py
Browse files- ingest/utils.py +2 -9
ingest/utils.py
CHANGED
|
@@ -1,9 +1,2 @@
|
|
| 1 |
-
def
|
| 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']})"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|