The words ‘dog’ and ‘dick’ (as in the pudding Spotted Dick) are a corruption of ‘dough.’ The spotted part refers to raisins.