- 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_kind('housenumber')
+ self.split_regexp = config.get_delimiter()
+
+ nameregexps = config.get_string_list('convert-to-name', [])
+ self.is_name_regexp = [re.compile(r) for r in nameregexps]