Text this: Madness in medieval law and custom