2. Mistakes in making a contract are distinguished ordinarily into, first, mistakes as to the motive; secondly, mistakes as to the person, with whom the contract is made; thirdly, as to the subject matter of the contract; and, lastly, mistakes of fact and of law. See Story, Eq. Jur. 110; Bouv. Inst. Index, h. t.; Ignorance; Motive.
3. In general, courts of equity will correct and rectify all mistakes in deeds and contracts founded on good consideration. 1 Ves. 317; 2 Atk. 203; Mitf. Pl. 116; 4 Vin. Ab. 277; 13 Vin. Ab. 41; 18 E. Com. Law Reps. 14; 8 Com. Digest, 75; Madd. Ch. Prac. Index, h. t.; 1 Story on Eq. ch. 5, p. 121; Jeremy's Eq. Jurisd. B. 3, part 2, p. 358. See article Surprise.
4. As to mistakes in the names of legatees, see 1 Rop. Leg. 131; Domat, l. 4, t. 2, s. 1, n. 22. As to mistakes made in practice, and as to the propriety or impropriety of taking advantage of them, see Chitt. Pr. Index, h. t. As to mistakes of law in relation to contracts, see 23 Am. Jur. 146 to 166.