Hrm, interesting, so it seems that the bonus per stat even given the same ranking isn't consistent across all weapons but rather just for the single weapon itself.
So, I guess it just takes some experimentation then. The E, D, C, B, A, S ranking is just for that weapon then i.e. if a weapon has a rating of E on str and D on dex, you'll get more damage with dex then.