From 73719f20f8547d6de434be7228e3c22480024c34 Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Sat, 7 Oct 2023 11:50:28 +0200 Subject: [PATCH] make remove_types invocation more specific --- yente/data/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yente/data/util.py b/yente/data/util.py index e8cd7b0e..fc96f4c6 100644 --- a/yente/data/util.py +++ b/yente/data/util.py @@ -17,10 +17,9 @@ def _clean_phonetic(original: str) -> Optional[str]: # be extra picky what phonemes are put into the search index, so that # we can reduce the number of false positives. text = clean_entity_prefix(original) - cleaned = clean_name_light(text) + cleaned = remove_types(text, clean=clean_name_light) cleaned = decompose_nfkd(cleaned) cleaned = category_replace(cleaned) - cleaned = remove_types(cleaned) return cleaned