Giter Site home page Giter Site logo

robertomalatesta / openlegaldictionary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digitallawyer/openlegaldictionary

0.0 1.0 0.0 30.06 MB

An open source legal dictionary containing thousands of legal terms and definitions.

Home Page: https://www.openlegaldictionary.com

License: MIT License

HTML 32.07% Ruby 67.47% CSS 0.46%

openlegaldictionary's Introduction

Open Legal Dictionary is an open source legal dictionary containing thousands of legal terms and definitions.

The code for this app is available on Github. This app is hosted on Github Pages, and makes use of:

Data for the definitions was sourced from:

Data from Black Law's Dictionary 2nd Edition still has many issues, including missing records and typo's as a result of the OCR process. Whilst working with this data is not exactly convenient, the effort required was much alleviated as a result of the work of various individuals and organizations:

Cleaned up source files can be downloaded from the Github repository of this project:

  • US Courts Glossary (json)
  • Black Law's Dictionary 2nd Edition (2010) (json)

Contributing

Contributing definitions

openlegaldictionary.com is an open database of legal definitions. Contributions are welcomed and will be shared with the community at large. To contribute to the legal definitions on openlegaldictionary.com:

  • make a clone of this repository
  • make any changes or corrections you'd like to the definition files (usc.json and bld.json)
  • commit your changes and submit a pull request

Not sure where to start but keen to contribute to this open dataset? Contact me via www.pietergunst.be.

Contributing code

Pull requests are always welcome. To keep things clean, please create a feature branch for any new code you submit.

Building

Experimentation and tinkering are encouraged, and there are many ways in which this app and the data pipeline can be optimized.

  • Clone this repository
  • run bundle install

App configuration values are housed in _config.yml. Before you proceed, you'll need to create an algolia account, and update the following values in _config.yml:

  • application_id
  • index_name
  • search_only_api_key

To import data from one of the dictionaries, point to the dictionary file by updating the source: value in _config.yml. Note that the bld.json file housing the data from Black Law's Dictionary 2nd Edition is quite large, and will require a paying Algolia account to house the entire dataset.

The command to convert the definition file in separate pages, which can subsequently be read by Algolia, is:

bundle exec jekyll pagemaster definitions

Once you've imported a dictionary, you can run the application using:

  • run jekyll serve

Once the application is running, you can run the following command (make sure to replace 'admin-key' with your Algolia admin key) to sync the definitions you imported with Algolia.

  • ALGOLIA_API_KEY='admin-key' jekyll algolia

openlegaldictionary's People

Contributors

digitallawyer avatar pixelastic avatar

Watchers

 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.