code: def add_detector(self, detector_cls):
          
          if not issubclass(detector_cls, detectors.base.Detector):
              raise TypeError((
                  '"%(detector_cls)s" is not a subclass of Detector'
              ) % locals())
          # TODO: should add tests to make sure filth_cls is actually a proper
          # filth_cls
          name = detector_cls.filth_cls.type
          if name in self._detectors:
              raise KeyError((
                  'can not add Detector "%(name)s"---it already exists. '
                  'Try removing it first.'
              ) % locals())
          self._detectors[name] = detector_cls()
docs: Add a ``Detector`` to scrubadub