Landtag lists: match existing persons by birth date, Landtag membership and name variants
- person_by_name rules out homonyms born on another day and prefers the one who sat in that Landtag; failing an exact name, accepts a unique variant among that Landtag's members (Rudi/Rudolf, Chiara-Sophia/Chiara, new double surnames) - normalize() maps ß to ss like SQL unaccent(); migration 0008 aligns stored aliases - clean_name drops image captions, parenthesised suffixes, LTP, other abbreviations and zero-width characters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
faf9572b9f
commit
68be25a953
10 files changed
+114
-13
No files matched your search
@@ -98,6 +98,9 @@ class PersonRecord:
|
||||
#: if no identifier matches, merge with an existing person of exactly this (unambiguous) name before
|
||||
#: creating a new one - for authoritative sources that share no id with others (e.g. EP)
|
||||
match_by_name: bool = False
|
||||
#: with match_by_name: state key ('noe', ...) of a Landtag list, to tell homonyms apart and accept name
|
||||
#: variants among that Landtag's members (Resolver.person_by_name)
|
||||
match_landtag: str | None = None
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in new issue
Block a user