Polish assistant wording and mobile explorer
This commit is contained in:
@@ -112,7 +112,11 @@ class GeoAssistantService:
|
||||
if "population" in estimated_themes:
|
||||
answer = re.sub(
|
||||
r"\bde officiële telling\b",
|
||||
"de van de officiële bron afgeleide schatting",
|
||||
lambda match: (
|
||||
"De uit de officiële bron afgeleide schatting"
|
||||
if match.group(0)[0].isupper()
|
||||
else "de uit de officiële bron afgeleide schatting"
|
||||
),
|
||||
answer,
|
||||
flags=re.IGNORECASE,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user