"""LowercaseNormalizer --- converts text to lowercase."""

from __future__ import annotations

from .base import BaseNormalizer


class LowercaseNormalizer(BaseNormalizer):
    """Converts text to lowercase before scanning."""

    def to_normalizer_spec(self) -> dict:
        return {"type": "lowercase", "config": {}}
