Automated Jury Duty

gavel.jpgJosh Rai, our fearless web developer, is already the third casualty of jury duty on our team this year. (We're not even a month into 2010!) In the hope that it would get him out of jury duty, Josh developed a program that could reliably return verdicts that would replicate actual human jury verdicts.

Here it is-




if (trial.getDistrict().getUntrustedRaces().includes(defendant.getRace()) and
    defendant.getAnnualIncome() < LocationService.lookup("90210").getAverageIncome() and
    MagazineService.lookup("Us").countOccurrencesInPastYear(defendant.getName()) < 10) {
  return "Guilty";
}
else {
  return "Not Guilty";
}


We think he did a great job. Imagine how many hours of wasted time and government costs Josh just saved the country. Nobel Prize? He has my vote.

3 Comments

Lara said:

if only I had been able to take this with me! drat - 1 day late... At the very least they would have dismissed me for suggesting it.

Josh Rai said:

Just for the record... I do believe jury service is an essential civic duty, and I hope this algorithm is full of bugs.

Aaron Z said:

hillarious!

Leave a comment