Closed adelevie closed 10 years ago
unitedstates/citation does this, and it would be great to have that feature here. Desired output:
var walverine = require('walverine'); var input = "I am a cat. Smith v. Hardibble, 111 Cal.2d 222, 555, 558, 333 Cal.3d 444 (1988)"; var cites = walverine.get_citations(input); console.log(cites); // => /* [ { match: 'Smith v. Hardibble, 111 Cal.2d 222, 555, 558, 333 Cal.3d 444 (1988)', volume: 111, reporter: 'Cal. 2d', page: 222, lookup_index: 0, canonical_reporter: 'Cal.', extra: '555, 558, 333 Cal.3d 444', defendant: 'Hardibble', plaintiff: 'Smith', court: null, year: 1988, mlz_jurisdiction: 'us;ca', match_url: null, end_idx: 11, cert_order: null, disposition: null, seqID: 0, relations: [ 0, 1 ] }, { match: 'Smith v. Hardibble, 111 Cal.2d 222, 555, 558, 333 Cal.3d 444 (1988)', volume: 333, reporter: 'Cal. 3d', page: 444, lookup_index: 0, canonical_reporter: 'Cal.', extra: null, defendant: 'Hardibble', plaintiff: 'Smith', court: null, year: 1988, mlz_jurisdiction: 'us;ca', match_url: null, end_idx: 14, cert_order: null, disposition: null, CARRY_FORWARD: true, seqID: 1, relations: [ 0, 1 ] } ] */
unitedstates/citation does this, and it would be great to have that feature here. Desired output: