freelawproject / reporters-db

A database of court reporters, tests and other experiments
BSD 2-Clause "Simplified" License
96 stars 34 forks source link

Special Formats appears incomplete #146

Open flooie opened 2 years ago

flooie commented 2 years ago

In testing special formats in CL it became apparent that this method doesnt appear to be correctly identifying special formats.

flooie commented 2 years ago

To expand briefly, the special format tool is supposed to generate (from the docs)

The dictionary takes the form of:
        {
            'T.C. Summary Opinion': '{reporter} {volume}-{page}',
            'T.C. Memo.': '{reporter} {volume}-{page}'
            ...
        }

but currently the following is the entire dictionary generated.

{'Add.': '{reporter} {page}',
 'Bankr. L. Rep.': '{reporter} {page}', 
'Fed. Sec. L. Rep. (CCH)': '{reporter} {page}', 
'NMCA': '{volume}-{reporter}-{page}', 
'NMCERT': '{volume}-{reporter}-{page}', 
'NMSC': '{volume}-{reporter}-{page}', 
'Ohio': '{volume}-{reporter}-{page}'}

It appears that whatever is meant to trigger and generate this dictionary is no longer working correctly. I realized this because the examples in the doc string aren't there.

flooie commented 2 years ago

Or more specifically, we need to update the special formats - and label them appropriately in the cite_format field

"cite_format": "{volume}-{reporter}-{page}",