Parses the Nevada NRS into well formed JSON
  • Haskell 98.7%
  • Shell 1%
  • Dockerfile 0.3%
Find a file
2023-12-28 23:47:35 -07:00
app Dockerize the application (#48) 2019-01-15 02:12:16 -08:00
scripts save to s3 (#52) 2022-09-17 23:30:00 -06:00
src Refactoring (#54) 2023-12-28 23:43:43 -07:00
test refactor: cleanup 2023-12-28 23:47:35 -07:00
.ghcid Fix for section not parsing (#50) 2020-05-29 02:47:38 -06:00
.gitignore save to s3 (#52) 2022-09-17 23:30:00 -06:00
.hspec Section name fix (#38) 2018-12-19 00:00:41 -08:00
.travis.yml travis config 2018-09-02 22:37:02 -07:00
Dockerfile fix: directory in output (#49) 2019-01-18 13:46:42 -08:00
LICENSE first commit 2017-01-26 18:20:18 -08:00
nrs-parser.cabal Refactoring (#54) 2023-12-28 23:43:43 -07:00
README.md Update README.md 2022-09-01 19:46:17 -06:00
Setup.hs first commit 2017-01-26 18:20:18 -08:00
stack.yaml Refactoring (#54) 2023-12-28 23:43:43 -07:00
stack.yaml.lock Refactoring (#54) 2023-12-28 23:43:43 -07:00

Parser for the Nevada Revised Statutes

Input: The Nevada Revised Statutes website, mirrored with the included script into /tmp.

Output: Well-formed JSON which implements the laws' structure as the legislature created it:

{
    "nominalDate": 2018,
    "dateAccessed": "2018-01-28",
    "statuteTree": {
        "titles": [
            {
                "chapters": [
                    {
                        "url": "https://www.leg.state.nv.us/nrs/NRS-1.html",
                        "name": "Judicial Department Generally",
                        "number": "1",
                        "subChapters": [
                            {

etc.

Explore the Data on Kaggle

Opinionated Resources for Haskell Best Practices

On Exception Handling