To provide method and device for discriminating a pattern kind such as a Levenson type phase shift mask, etc., based on signal information of respective beforehand measured patterns.
A reference standard mask is irradiated by spot light, and the scattered light or the positive reflection light of the spot light is detected, and the signal information 25, 26, 27, 28, 29 of the components classification of the pattern of the standard mask are gained by learning beforehand. Then, the mask of a measuring object is irradiated by the spot light, and the scattered light or the positive reflection light of the spot light is detected, and the components of the patterns of the mask of the measuring object are discriminated based on the signal information gained by learning.