Repository metrics
- Stars
- (29 stars)
- PR merge metrics
- (PR metrics pending)
Description
Summary Enable AI-powered multi-language summarization and translation so that articles fetched by the crawler can be summarized in both their original language and English. This will make the tool more inclusive for international audiences and government staff dealing with multilingual sources.
🔍 Problem
Currently, the summarization pipeline only generates summaries in English. However, many government-related sources (EU, UN, ASEAN, etc.) publish content in multiple languages. Limiting summaries to English:
- Reduces accessibility for non-English speakers.
- Prevents analysts from comparing original tone vs AI-translated version.
- Leaves out potentially important sources in non-English contexts.
💡 Proposed Solution
-
Extend summarization to support multiple languages:
- Step 1: Detect article language during crawling (using libraries like
franc,langdetect, or Google Translate API). - Step 2: Generate summaries in the original language.
- Step 3: Provide optional AI translation to English (and vice versa).
- Step 1: Detect article language during crawling (using libraries like
-
Store both versions (
summary_originalandsummary_translated) in MongoDB. -
Frontend toggle: allow users to switch between original-language and translated summaries.
📐 Technical Notes
-
Crawler:
- Add language detection before storing raw article content.
-
Backend (Express/Next.js API):
- Update schema with
language,summary_original,summary_translated. - Add
?lang=enquery param to/api/articlesfor filtering summaries.
- Update schema with
-
Frontend (Next.js):
- Add toggle/switch on article detail page for “View Original / View English”.
- Display a flag/language indicator on each article card.
-
AI Provider:
- Use Google Generative AI (Gemini) multilingual summarization or fallback to Translate API if needed.
✅ Benefits
- Expands reach to multilingual government staff.
- Increases accuracy by preserving original summaries.
- Provides a better comparative analysis experience.
- Makes SynthoraAI a global-ready solution.
📊 Priority
High – critical for adoption in international/multilingual environments.