Scrape statute code for each charge. They can be found in the "charges" section of the docket under column "statute". In the attached example, these correspond to "18 S6106 SSA1", ...
This will help encode the different types of charges for analysis purposes.