Text this: Social formation in medieval Bengal