Giter Site home page Giter Site logo

lacuna-technologies / clerkent Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 4.0 3 MB

quickly and easily search for and download case law; automatically rename downloaded judgments

Home Page: https://clerkent.huey.xyz

License: Other

JavaScript 1.16% TypeScript 96.82% HTML 0.46% Shell 0.46% CSS 1.09%
legaltech lawtech firefox-addon chrome-extension court-judgment cjeu european-union united-kingdom australia new-zealand

clerkent's Introduction

Clerkent

Case law at your fingertips

See clerkent.huey.xyz for more details

GitHub Chrome Web Store Chrome Web Store Mozilla Add-on Mozilla Add-on

Install

Screenshots

UK screenshot SG screenshot

Development

Run in development mode for your preferred browser:

pnpm i

pnpm run dev:chrome
pnpm run dev:firefox
pnpm run dev:opera

Load it as an unpacked extension

Tests

There are some tests, mostly snapshot tests.

pnpm run test

Roadmap

Find out what features and other changes are coming soon on the development roadmap.

Dependencies

FOSSA Status

clerkent's People

Contributors

hueyy avatar wohanley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clerkent's Issues

In-browser PDF viewer

It is not straightforward to run a content script in the in-browser PDF viewer.

In Firefox, this has intentionally been made impossible, and working around this involves intercepting PDF requests, and serving up a custom-made PDF viewer with PDF.JS injected together with a custom content script.

In Chrome, although content scripts are not blocked from running per se, there is an intervening iframe and the content script needs to be injected into the iframe (i.e. all_frames must be set to true, or document.write is needed).

Automatically select jurisdiction based on case citation

If a case citation is entered that clearly pertains to a certain jurisdiction, e.g. SLR, All ER, EWCA, AC, etc then automatically switch to that jurisdiction.

  • Consider a short delay to account for typing
  • Consider no delay if citation is pasted in

Should cancel network requests once query changes

If you modify your query, switch between case & legislation modes, or switch jurisdictions, Clerkent does not cancel the ongoing network request and simply sends a new one and ignores the results from the previous ones. It should actually cancel the outdated requests.

Convert judgments to PDF

For judgments available only in RTF / HTML format, offer an option to download it in PDF format.

downloadPDF should send the case back to BackgroundPage, scrape the case page, check for any existing PDF links, then attempt to convert the page to PDF

Should not show welcome page on every browser update

On some browsers, the install event is fired when there is a major update to the browser, even though the browser extension has not actually been reinstalled.

Should store a record of whether the welcome page has been shown and avoid re-showing it on browser updates.

Scottish cases

  • Jennifer McCulloch and others v Forth Valley Health Board [2020] CSOH 40
  • Wishart v Castlecroft Securities [2009] CSIH 65

Add additional sites to highlight list

  • Wikipedia (and related wiki domains?)
  • Google Drive (check google doc/slides compatibility)
  • "OUP articles"

Google docs is problematic because it runs complex JS after page load, overwriting the highlighter. Provide option to re-run highlighter? Not a good idea to keep rechecking for citations because of the performance tax this would entail.

CJEU - Judgments / Opinions

When there is only 1 document available, Clerkent currently assumes it is a judgment, but it could also be an opinion, so Clerkent should not do this.

Cannot find Equality Act 2010

e.g. Equality Act 2010, most people use EqA. Also I seached Equality Act 2010 and the link didn’t come up. Then searched land registration act and link didn’t come up again

Various bugs

  • Mandalia v Home Secretary [2015] UKSC 59
  • UNISON
  • "patents act" in cases instead of legislation
  • "patents act" in legislation
  • Chan Kam Shing (landmark crim JE case) (CFA judgment should appear on top)
  • Li Sau Ying v Bank of China (when you click "show more")

Better sorting of search results

  • If searching by citation, exact matches should be preferred (note possibility of zero-padding, e.g. SGHC 01 and SGHC 1)
    • SLW is the main culprit, so perhaps filtering there could sufficiently address this issue
  • If searching by case name, should sort by some sort of textual similarity, not just the rough authoritative scale currently used

More button on popup

There can be up to 20 results right now which can be a bit overwhelming. Show up to 3, and hide the rest behind a more button.

ECtHR support

and ECHR support in legislation
new jurisdiction required

Options page

  • Disable highlighting (in case there is incompatibility with other extension / certain sites, or for performance reasons)
  • Disable certain jurisdictions (for quicker switching)
  • Disable certain databases (for faster searching)

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.