Text this: A fragmentation-based study of heavy quark production