Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

chore(i18n): mark German matching-data in evidence_gate.py

Ruben Lütke225cd8d6cd46
diff --git a/jarvis/brain/evidence_gate.py b/jarvis/brain/evidence_gate.py
index 664708967d..07a4d86a72 100644
--- a/jarvis/brain/evidence_gate.py
+++ b/jarvis/brain/evidence_gate.py
@@ -33,9 +33,9 @@ _LOOKUP_SHAPE_RE = re.compile(
)
# Definitional/explanatory questions are general knowledge, not a data lookup
-# ("Was ist ein Pull Request?") — never force a tool call for them.
+# (e.g. the German "Was ist ein Pull Request?") — never force a tool call for them. # i18n-allow: quoted German input example
_DEFINITION_RE = re.compile(
- r"\b(was ist ein|was ist eine|was sind|was bedeutet|wofuer steht|"
+ r"\b(was ist ein|was ist eine|was sind|was bedeutet|wofuer steht|" # i18n-allow: German input-matching data
r"what is a|what is an|what are|what does|explain|erklaer)\b"
)
@@ -85,7 +85,7 @@ _REFUSAL_EN_FALLBACK = "I have no data access for that right now."
def _detect_lang(text: str) -> str:
"""Cheap DE/EN heuristic for the refusal language (mirrors the existing
heuristic in ``BrainManager._check_unsupported_intent``)."""
- if re.search(r"[äöüÄÖÜß]", text):
+ if re.search(r"[äöüÄÖÜß]", text): # i18n-allow: umlaut character class, language-detection matching data
return "de"
if re.search(
r"\b(was|wie|welche|welcher|steht|stehen|heute|morgen|hab|habe|"