Assigned Counsel and Fee Waiver Bot

By Christopher Lacenere

I wrote a bot, and you can find it here. To write my bot, we used a tool called QnA Markup. Basically, you create an interactive decision tree by nesting questions and answers. Here's my code.

User Testing

Admittedly, I was unable to get a beta version to my peer tester in time because I still had not found the rules on criminal cases and for juveniles.

However, once this information was found I sent my code to my peer tester and received some useful feedback. Professor Colarusso was copied on these email exchanges.

In particular my peer tester found my determination of qualifying as indigent in a criminal case to be unclear because my bot did not give any details about requisite financial status to obtain counsel. It merely stated I need not be completely without funds, and that I need to fill out an affidavit with information necessary for the court to make a determination. Basically, I did not have sections on qualifying or not qualifying for criminal cases; I just spat out the law. Also, he said my bot did not specify what that information needs to be.

I therefore changed my code to not just spit out the law, without giving the user a sense of whether they might qualify or not. I instead made my first question very concise: "Do you lack financial resources on a practical basis to retain counsel? In other words, although you need not be entirely without funds, would it be impractical for you to afford an attorney?" Then, based on this answer, I took the user to newly created sections explaining to the user on qualifying or not qualifying for criminal cases.

Although Illinois does not have a strict set of rules for criminal cases as in some jurisdictions, I also added some examples of basic information that one might add to the affidavit for criminal cases, such as income, property, savings, and expenses.

Overall, I felt the feedback was good and that the changes I made based on it improved the user experience.

The code for my peer tested bot can be found here and the code containing the revisions based on feedback can be found here.

--

I also performed peer testing and found that when I ignored a special rule asking whether the person owned property valued over 2,500, I got what appeared to be correct answers for the categories.

However, I did find a glitch for both civil and criminal cases wherein if the user had no income, but owned property valued at greater than 2,500, the bot would say you don't qualify because you make over 200% of the poverty line. This did not seem right and I suggested that he add an additional explanation as to why the user wouldn't qualify if this is indeed how Florida works, or adjust what leads to disqualification/qualification if you are dirt poor but have an asset valued over 2,500.

--

I reached out to six Illinois legal aid organizations via their "contact us" form on their websites with the following message:

"Dear Sir or Madam,

I am currently a third year night student at Suffolk Law School in Boston. I am currently taking a course on computer coding as it relates to the law. For our first project, I am creating a "chatbot" to determine if someone is eligible for appointed counsel, fee waivers, or the like, in the state of Illinois. The bot will provide users with a set of action items to obtain any such aid, including copies of any applicable court forms pre-filled with data obtained from interaction with the bot.

I was wondering whether someone at your organization would consider looking at my final product and giving me some feedback in about three weeks regarding its usefulness?

Thank you, Christopher Lacenere"

On September 6, 2017, I contacted the following pro bono organizations via the listed URLS:

https://www.illinoislegalaid.org/email/node/94096/field_contact_email (Illinois Legal Aid)

http://www.clclaw.org/contact.aspx (Chicago Legal Clinic)

http://www.cvls.org/contact (Chicago Volunteer Legal Services)

On September 12, 2017, I contacted the following pro bono organizations via the listed URLS:

https://www.accessliving.org/contact (Legal Clinic for the Disabled)

https://kanecountybar.org/contact-us (Kane County Bar Association)

http://www.dupagelegalaid.org/contact-us.html (DuPage Legal Aid)

I have not yet heard back from any of the contacted organizations.

Refinement

Aside from the refinement discussed above based on peer-testing, I started with just the civil rules, which is all I was able to find for a while.

I used the template provided by Professor Colarusso as my start. However, the criminal aspect of the template did not apply to my state, so I rewrote the criminal qualification section to apply to Illinois for both adults and juveniles (the rules which are essentially the same except that a juvenile's affidavit must be signed by an adult with knowledge of the facts). Although no distinction is made between misdemeanors and felony's in Illinois, one is not entitled to court appointed counsel if the penalty in the case is only a fine.

I then rewrote my qualciv section to include minors, explaining that the affidavit must be signed by an adult with knowledge of the facts.

I also wrote another section for qualifying based on financial hardship to you or your family.

As I went through the process, I did have to do some debugging. Mostly, because I would repeat variable names and get an error.

After I had my rules for qualifying/not qualifying set up I went on to include forms and pre-filling a form. Note: depending on where you choose to prefill a form, a different number of variables are used. If you make it all the way through to the "hardship" qualification, all of the form's variables are filled in.

When I originally set up the prefilling of forms, I had repeated the same code under each of the three qualification sections. However, I then chose to be more efficient and simply use a GOTO statement under each of these sections that went to a single variable that began the form filing process. This made the code more compact and easier to follow.

I then made minor adjustments to my descriptions, did some grammar and spell checking, and made minor tweaks (e.g., requiring the ZIP code to be a number).

Finally, I ran through every permutation of the program in the end to make sure everything worked properly.

Real-World Viability

I think in general, the bot would be very useful in the real world to give people guidance on whether or not they may qualify for a fee waiver or court appointed counsel. It is easy to use and (I believe) easy to understand by a broad audience. It performs a very efficient screening of the requisite qualifications, concisely explains why the user may qualify or not, points them to the law, and directs the user to the proper forms. It also allows them to search for an attorney in their area.

Although I know we were not meant to pre-fill the actual forms (if this is possible), I think this would be the single best addition for real world viability, i.e., actually pre-filling a PDF document of the actual forms.

Finally, since I did not hear back from any of the Illinois lawyers I contacted, I had three people at my firm (a local patent boutique) test the final version. I am anonymizing their last names: Elizabeth S. (partner), Emmanuel F. (associate), and Dorothy C. (counsel). Although they are not Illinois lawyers, they all were impressed and thought that the bot was well executed and that it would be useful to the general public in determining whether they qualify as indigent. Emmanuel also suggested it would be useful to write a bot to calculate patent expiration dates (which is actually more complicated than it sounds). This sounded like a great idea to me.

In [ ]:
 
In [ ]: