ds300 / ds300/jetzt

Strip citations from text

Open
#98 4 comments 0 reactions 1 assignee Claimed by @ds300 View on GitHub
feature request
Dominant language
JavaScript
Stars
500
Forks
125
PR merge metrics
No merged PRs in 30d

Description

I realize this is a rather niche request, but I figured why not put it out there in the spirit of open source. I read a lot of documents with many case and statutory citations that are basically useless in speed-reader form. I suspect people in academia would have a similar issue. I would like to suggest an option to strip citations from the text as part of the parsing process. I tried to track down some regular expressions that match typical citation forms and came up with these:

http://stackoverflow.com/questions/7054764/regular-expression-for-legal-citation
http://pyparsing.wikispaces.com/share/view/10397114

The pyparsing example appears to be a good starting place but would need to be implemented in JS. Alternatively, maybe someone out there has already solved this precise problem (but I couldn't find it).

Another lower tech option would be to have an option to strip text matching any arbitrary number of patterns in the configuration interface--this would save the user from having to tangle with the source code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.