- def __init__(self, config):
- self.filter_kind = create_kind_filter(config, 'housenumber')
- self.split_regexp = create_split_regex(config)
+ def __init__(self, config: SanitizerConfig) -> None:
+ self.filter_kind = config.get_filter('filter-kind', ['housenumber'])
+ self.split_regexp = config.get_delimiter()
+
+ self.filter_name = config.get_filter('convert-to-name', 'FAIL_ALL')