@classmethod
def register_rule(cls, **kwargs):
    """
        Use it as a class decorator::

            normalizer = Normalizer('grammar', 'config')
            @normalizer.register_rule(value='foo')
            class MyRule(Rule):
                error_code = 42
        """
    return cls._register_rule(**kwargs)
