@staticmethod
def get_rule_kwargs(data):
    """Extract the keyword arguments necessary to create a new instance
        for this class.
        """
    kwargs = dict()
    try:
        kwargs['score'] = list(map(float, data['score'].strip().split()))
    except KeyError:
        pass
    try:
        kwargs['desc'] = data['describe'].strip()
    except KeyError:
        pass
    try:
        kwargs['priority'] = data['priority'].strip()
    except KeyError:
        pass
    try:
        if data['tflags']:
            kwargs['tflags'] = []
        for flag in data['tflags']:
            kwargs['tflags'].append(flag.strip())
    except KeyError:
        pass
    return kwargs
