Text this: Using a library of chemical reactions to fit systems of ordinary differential equations to agent-based models