Before revision: In materials science, hardness (antonym: softness) is a measure of the resistance to localized plastic deformationinduced by either mechanical indentation or abrasion.
After revision: In materials science, hardness (antonym: softness) is a measure of the resistance to plastic deformation, such as an indentation (over an area) or a scratch (linear), induced mechanically either by pressing or abrasion.