def specify(self, identifier, pattern, sr):
    sm = pattern.extract_sm()
    if (identifier == 'whitespace'):
        self.__specify(self.sm_whitespace, sm, sr)
    elif (identifier == 'bad'):
        self.__specify(self.sm_badspace, sm, sr)
    elif (identifier == 'newline'):
        self.__specify(self.sm_newline, sm, sr)
    elif (identifier == 'suppressor'):
        self.__specify(self.sm_newline_suppressor, sm, sr)
    elif (identifier == 'suspend'):
        self.__specify_suspend(sm, sr)
    else:
        return False
    return True
def specify(self, identifier, pattern, sr):
    sm = pattern.extract_sm()
    if (identifier == 'whitespace'):
        self.__specify(self.sm_whitespace, sm, sr)
    elif (identifier == 'bad'):
        self.__specify(self.sm_badspace, sm, sr)
    elif (identifier == 'newline'):
        self.__specify(self.sm_newline, sm, sr)
    elif (identifier == 'suppressor'):
        self.__specify(self.sm_newline_suppressor, sm, sr)
    elif (identifier == 'suspend'):
        self.__specify_suspend(sm, sr)
    else:
        return False
    return True