Closed oliviaclyde closed 4 years ago
I have updated the logic and used a nested "if" to check for "1st degree felony" and if true, then check for "amended".
My concern is we also need to check the disposition field on each of these flags to make sure it doesn't return "dismissed"? I believe that was a function @benschinn was writing so we could call it on each of our flags. I believe if a change is dismissed, then it doesn't count against them, right @tuckersamuelsen?
@tuckersamuelsen I can't find a docket that has a charge of "1st Degree Felony" that hasn't been amended down. I'd like to get one so I can make sure my flag returns "true" on that case.
@lukeschunk I tested this and it looked okay on several dockets I tried, but when I used the new docket Tucker uploaded that contained several 1st degree felony charges (I'll PM you the case name) it returned false when it should have returned true. I wonder if this was because of the unusal formatting on the pdf....it also had a weird format on the raw parcer too. Can you take a look?
@Mengqi89 @oliviaclyde and I looked into the issue mentioned above, and it sounds like the issue is with the parser. Tuning the parser should be addressed in a separate PR, the code here LGTM.
@benschinn what is the issue with the parser? we could open an issue
I need some help on the logic for the first degree felony flag.