fix: classify Steuerfinanzamt and Reichsfechtschule as institutions
Some checks failed
CI / Unit & Component Tests (push) Failing after 2s
CI / Backend Unit Tests (push) Failing after 1s

Add "amt" and "schule" suffixes to INSTITUTION_END in PersonTypeClassifier
so German government offices and schools are auto-classified on import.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-08 20:59:17 +02:00
parent c34db997fa
commit e69aaa6a8c
2 changed files with 4 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ public class PersonTypeClassifier {
"Firma", "Architekt");
private static final List<String> INSTITUTION_END = List.of(
"GmbH");
"GmbH", "amt", "schule");
private static final List<String> GROUP_START = List.of(
"Familie", "Comité", "Comite", "Geschwister", "Gesellschafter",

View File

@@ -28,7 +28,9 @@ class PersonTypeClassifierTest {
"'Arthur Collignon GmbH', INSTITUTION",
"'Firma Auschrath', INSTITUTION",
"'Westermann u Co', INSTITUTION",
"'Architekt Korschelt u Renker', INSTITUTION"
"'Architekt Korschelt u Renker', INSTITUTION",
"'Steuerfinanzamt', INSTITUTION",
"'Reichsfechtschule', INSTITUTION"
})
void classify_institutionEntries(String input, PersonType expected) {
assertThat(PersonTypeClassifier.classify(input)).isEqualTo(expected);