{"action":"created","issue":{"url":"https://api.github.com/repos/codefordc/clean-slate/issues/165","labels_url":"https://api.github.com/repos/codefordc/clean-slate/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/codefordc/clean-slate/issues/165/comments","events_url":"https://api.github.com/repos/codefordc/clean-slate/issues/165/events","html_url":"https://github.com/codefordc/clean-slate/issues/165","id":107430372,"number":165,"title":"Look into automatic eligibility checker that uses PHP","user":{"login":"brianek","id":9157639,"avatar_url":"https://avatars.githubusercontent.com/u/9157639?v=3","gravatar_id":"","url":"https://api.github.com/users/brianek","html_url":"https://github.com/brianek","followers_url":"https://api.github.com/users/brianek/followers","following_url":"https://api.github.com/users/brianek/following{/other_user}","gists_url":"https://api.github.com/users/brianek/gists{/gist_id}","starred_url":"https://api.github.com/users/brianek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianek/subscriptions","organizations_url":"https://api.github.com/users/brianek/orgs","repos_url":"https://api.github.com/users/brianek/repos","events_url":"https://api.github.com/users/brianek/events{/privacy}","received_events_url":"https://api.github.com/users/brianek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codefordc/clean-slate/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/codefordc/clean-slate/labels/Priority%20%231","name":"Priority #1","color":"5319e7"},{"url":"https://api.github.com/repos/codefordc/clean-slate/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-09-21T01:47:17Z","updated_at":"2015-10-22T02:36:59Z","closed_at":null,"body":"https://github.com/mhollander/Expungement-Generator.\r\n\r\nIs this possible for us to do?"},"comment":{"url":"https://api.github.com/repos/codefordc/clean-slate/issues/comments/150088919","html_url":"https://github.com/codefordc/clean-slate/issues/165#issuecomment-150088919","issue_url":"https://api.github.com/repos/codefordc/clean-slate/issues/165","id":150088919,"user":{"login":"brianek","id":9157639,"avatar_url":"https://avatars.githubusercontent.com/u/9157639?v=3","gravatar_id":"","url":"https://api.github.com/users/brianek","html_url":"https://github.com/brianek","followers_url":"https://api.github.com/users/brianek/followers","following_url":"https://api.github.com/users/brianek/following{/other_user}","gists_url":"https://api.github.com/users/brianek/gists{/gist_id}","starred_url":"https://api.github.com/users/brianek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianek/subscriptions","organizations_url":"https://api.github.com/users/brianek/orgs","repos_url":"https://api.github.com/users/brianek/repos","events_url":"https://api.github.com/users/brianek/events{/privacy}","received_events_url":"https://api.github.com/users/brianek/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T02:36:59Z","updated_at":"2015-10-22T02:36:59Z","body":"@mchelen here is a message I got from the Expungement generator from Phily. I asked him what line of code reads the criminal records. \r\n\r\nTo briefly answer your question, the regular expressions from line 100-180 is the code that defines how to read the docket.  The horrible function readArrestRecord is the part that applies the regular expressions and stores everything off into variables.  The function basically takes a line by line look at an arrest record and brute force tries to match that line to one of the aforementioned regular expressions.\r\n\r\nreadArrestRecord is called in expunge.php, which first calls pdftotext on the pdf docket sheet, which reads the pdf into a text file.  The text file is then fed into readArrestRecord.\r\n\r\nLet me know if that helps.\r\n\r\nThe big challenge that you are going to have is how to OCR the scanned documents.  That is beyond my expertise, but I understand that this is a problem that has been solved by other people.  "}}