GitXplorerGitXplorer
a

walverine

public
55 stars
9 forks
7 issues

Commits

List of commits on branch master.
Unverified
277aafe2b952632d9fe82483b4f87e3e0ba1a3ff

added match attr to Citation prototype

aadelevie committed 11 years ago
Unverified
90b9b35028431752f33070167ca3468515a89fbe

Citaton match string

ffbennett committed 11 years ago
Unverified
f5b61b722bfeaef5ae084068c89238a792188585

Delete npm-debug.log

aadelevie committed 11 years ago
Unverified
eef02d8c904383d09b1575b01fc827845d91920d

moar typos

aadelevie committed 11 years ago
Unverified
9c24848ce18a2fe7d8dce31ce526840415adf43b

bump to 0.0.3

aadelevie committed 11 years ago
Unverified
4a0d17f039651a2c98127afa4ed726542c5d5f59

fixed module.exports problem

aadelevie committed 11 years ago

README

The README file for this repository.

Walverine

Mightier than a ferret, contains "Law Rev." spelled backwards.

Walverine extracts structured case law citations from unstructured strings of text.

Usage

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);
// =>
/*
[ { 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,
    match: 'Smith v. Hardibble, 111 Cal.2d 222, 555, 558, 333 Cal.3d 444 (1988)',
    seqID: 0,
    relations: [ 0, 1 ] },
  { 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,
    match: '558, 333 Cal.3d 444 (1988)',
    seqID: 1,
    relations: [ 0, 1 ] } ]

*/

Installation

npm install walverine

Heritage

CourtListener (Python) -> Free Law Ferret (Javascript/Firefox Extension) -> Walverine (Javascript/Node)

License

See LICENSE.txt