Skip to content

feat(humanitarian): multi-language verification prompts (#1201) - #1331

Closed
chidii wants to merge 4 commits into
Pulsefy:mainfrom
chidii:feat/1201-multilang-humanitarian-prompts-v2
Closed

chidii wants to merge 4 commits into
Pulsefy:mainfrom
chidii:feat/1201-multilang-humanitarian-prompts-v2

Conversation

@chidii

@chidii chidii commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Closes #1201

Summary

Adds multi-language support to humanitarian verification prompts so
non-English aid claims are no longer evaluated by an English-only prompt.

Changes

  • humanitarian_prompt.py: language-keyed templates, module-level detect_language(), <<MARKER>> substitution so the JSON schema survives rendering
  • prompt_registry.py: VerificationPrompt ABC + version-keyed PromptRegistry
  • humanitarian_verification.py: accept language param, auto-detect when absent, return language / prompt_version
  • schemas/humanitarian.py: optional language field on request
  • api/v1/humanitarian.py: thread language through the cached wrapper
  • fixtures/humanitarian_prompts_i18n.json: golden fixtures for en/es/fr/ar
  • tests/test_humanitarian_prompt_i18n.py: parametrized regression tests

Acceptance criteria

  • Prompt builder accepts a language parameter
  • Language detection or explicit hint determines the variant
  • Each supported language has a registered, versioned prompt
  • Regression fixture set per language

@Cedarich

Copy link
Copy Markdown
Contributor

Doing a repo-wide cleanup - closing all currently open pull requests to reset the board, not a judgement on this contribution.

Nothing is lost: this branch and every commit on it still exist, and you're welcome to reopen this PR (or open a fresh one) at any time. If this was tracking an issue, that issue is being unassigned so it goes back into the open pool - feel free to comment on it to pick the work back up.

Thanks for contributing to Soter.

@Cedarich Cedarich closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Multi-Language Support to Humanitarian Verification Prompts

2 participants