24 lines
806 B
Python
24 lines
806 B
Python
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)
|