
# convenient imports
from .scrubbers import Scrubber


__version__ = VERSION = "0.0.1"


def clean_with_placeholders(text, cls=None):
    """Public facing function to clean ``text`` using the scrubber ``cls`` by
    replacing all personal information with ``{{PLACEHOLDERS}}``.
    """
    cls = cls or Scrubber
    scrubber = cls()
    return scrubber.clean_with_placeholders(text)
