Code Monkey home page Code Monkey logo

benchbotformat's Introduction

8-14-2010
version 1

This tool process United States Supreme Court cases for bot upload.


== Input ==

Specify the input file(s) with ?u= in the URL.  The script is designed to process files from <http://bulk.resource.org/courts.gov/c/>, but it can also process files from <http://openjurist.org/>. 

For example: <format_case.php?u=http://openjurist.org/331/us/96/mccullough-v-kammerer-corporation>

To specify multiple files, separate each url by a vertical bar.

For example: <format_case.php?u=http://openjurist.org/5/us/137/william-marbury-v-james-madison|http://openjurist.org/449/us/383/upjohn-company-v-united-states>


== Output ==

When processed, a case includes:
*The syllabus
*Talk page for the syllabus
*The opinion of the court
*Talk page for the opinion of the court
*Each concurrence
*Talk page for each concurrence
*Each dissent
*Talk page for each dissent
*Redirect from each citation to the syllabus page

Each page begins with {{-start-}} and end with {{-stop-}}, and the first line of each page is the page name surrounded by three single-quotation marks ('''page name''').

A summery of all the generated pages is included between {{-start_report-}} and {{-stop_report-}} after the last page of each case.

The pages can be added to Wikisource using pywikipediabot's pagefromfile.py.  Use the -notitle option to avoid including the page name in each article. More information on pywikipediabot and pagefromfile.py is available at <http://pywikipediabot.sourceforge.net/> and <http://meta.wikimedia.org/wiki/Pywikipediabot/pagefromfile.py>.


== Necessary templates ==

The following templates are expected:
*{{Header}}
*{{USSCcase}}
*{{USSCcase2}}
*{{CaseCaption}}
*{{PD-USGov}}
*{{WikiProject USSC}}
*{{textinfo}}
*{{ref}}
*{{note}}
*{{Parallel reporter}}

More information on templates, formatting, and style for United States Supreme Court cases is available at <http://en.wikisource.org/wiki/Wikisource:WikiProject_U.S._Supreme_Court_cases>.

== Change log ==

04/15/2011 - Added phrases for splitting concurrences and dissents; fixed author full name for all dissents; fixed author last name for second concurrence; updated "roberts" in authorbyname.php to include Owen Roberts

benchbotformat's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.