Giter VIP home page Giter VIP logo

nevada-revised-statutes-parser's People

Contributors

dogweather avatar kobim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tarsbase

nevada-revised-statutes-parser's Issues

Chapter 36 parse error

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

Solve the false-positive problem

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.

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.