public-law / nevada-revised-statutes-parser Goto Github PK
View Code? Open in Web Editor NEWParses the Nevada NRS into well formed JSON
License: BSD 3-Clause "New" or "Revised" License
Parses the Nevada NRS into well formed JSON
License: BSD 3-Clause "New" or "Revised" License
Title 17 is just "State". But should be "State Legislative Department".
CI is enabled, but we don't have a .travis.yml
file yet.
➤ time stack exec nrs-parser-exe > nrs.json
nrs-parser-exe: Expected section "<p class="COLeadline" style="line-height:12.0pt"> </p>
<p class="J-Dash" style="margin-top:0in"><b>_________</b></p>
<p class="SectBody"> </p>
<p class="SectBody"><span class="Empty"> <a name="NRS036Sec010"></a>NRS </span><span class="Section">36.010</span><span class="Empty"> </span><span class="Leadline">Defendant asking affirmative relief may have provisional
remedies.</span><span class="Empty"> </span>When the defendant
interposes a counterclaim, and thereupon demands an affirmative judgment
against the plaintiff, the defendants right to a provisional remedy is the
same as in an action brought by the defendant against the plaintiff, for the
cause of action stated in the counterclaim, and demanding the same judgment;
and for the purpose of applying to such a case the provisions of NRS relating
to provisional remedies, the defendant is deemed the plaintiff, the plaintiff
is deemed the defendant, and the counterclaim so set forth in the answer is
deemed the complaint.</p>
<p class="SourceNote"> [1911 CPA § 252; RL § 5194; NCL § 8750]</p>
</div>
</body>
</html>
" raw number "_________" to have at least two words
CallStack (from HasCallStack):
error, called at src/FileUtil.hs:35:9 in main:FileUtil
real 15.58
user 40.91
sys 12.53
It's only grabbing the meta-data. The work is in #35
App will take one parameter: a directory with all pre-downloaded HTML files. Work in #14
How would they be to use?
https://github.com/Gabriel439/post-rfc/blob/master/sotu.md#parsing--pretty-printing
What's scary isn't that the parser will crash when the NRS changes ... it's that it will simply produce incorrect output. That's exactly what is happening with bug #44. Many Title names are gobbledygook. But the program completed without an error message. And when I update the code to correctly parse the current format (by updating my fixtures from the live HTML), it will work, for a while. And then, the same thing may happen again.
What's interesting, though, is that the current out-of-sync code does fail tests when the fixtures are updating from the live website. Which gives me an idea: make the app self-testing. After downloading the latest HTML to export as JSON, it should first run its test suite on the new input files. Only if the tests pass should it continue to run the full application.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.