Outputting names of prisoners (unclean).
Added prisoner type to CSV.
Outputs cleaned name to csv.
Gets date and type of date for each prisoner; need to add pretrial detention date type.
Outputs dates and date types correctly with one exception.
Remove <a> tags from date.
Getting prisoner charges (gets too much).
Added removePageRelatedTags function to remove useless PDF-page related tags.
Switched to using gsub! function to simplify checking for an error.
Switched to using gsub! function to simplify checking for an error.
Created new file prisonerSection.rb containing a PrisonerSection class and required it from parser.rb.
Added ID field to Prisoner Section class.
Added name field to PrisonerSection.
Transferred clean name and set name functions to PrisonerSection object.
Created @dateType field in PrisonerSection.
Transferred wrapDataValues function to PrisonerSection class.
Transferred initialization of name field into Prisoner class.
Date type is now set the moment a date is found in the prisoner's text, according to the phrase that found it.
Moved clean methods into separate clean.rb file.
Date type is now set along with the date field, rather than during the wrapping of the data values.