Add multilingual audit CI pipeline + extract mandelblog_content_guard
This commit is contained in:
23
mandelblog_content_guard/agents/de.py
Normal file
23
mandelblog_content_guard/agents/de.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from .base import BaseLanguageAgent
|
||||
from ..normalizers import normalize_de_text
|
||||
from ..system_strings import build_system_vocabulary
|
||||
|
||||
|
||||
class GermanAgent(BaseLanguageAgent):
|
||||
locale = "de"
|
||||
tone = "professional and trustworthy"
|
||||
preferred_formality = "formal Sie"
|
||||
vocabulary_map = {
|
||||
**build_system_vocabulary("de", ("transparent_investment",)),
|
||||
}
|
||||
cta_defaults = {
|
||||
"starter": "Starter-Gespräch planen",
|
||||
"business": "Beratungsgespräch planen",
|
||||
"support": "Support anfragen",
|
||||
"service": "Dienstleistungen anzeigen",
|
||||
"project": "Projekt starten",
|
||||
"kontakt": "Einführungsgespräch planen",
|
||||
}
|
||||
|
||||
def post_cleanup_text(self, text: str, field_path: str = "") -> str:
|
||||
return normalize_de_text(text, field_path=field_path)
|
||||
Reference in New Issue
Block a user