Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multi-Language Support for News Keywords and Outputs #30

Open
wahid18-maqs opened this issue Nov 26, 2024 · 4 comments
Open

Add Multi-Language Support for News Keywords and Outputs #30

wahid18-maqs opened this issue Nov 26, 2024 · 4 comments

Comments

@wahid18-maqs
Copy link

wahid18-maqs commented Nov 26, 2024

Currently, the project only supports single-language keyword detection and output generation. When users input keywords in multiple languages, the output remains static and does not adapt to the input language. This limits the project's accessibility for non-English-speaking users.

Describe the solution you'd like
I propose the following steps to add multi-language support:

  1. Language Detection: Integrate a library like langdetect or langid to automatically identify the language of the input keywords.
  2. Translation Mechanism: Use a lightweight and open-source translation tool (e.g., translate-python) to translate news content into the input language. This avoids reliance on paid services like Google Cloud or DeepL.
  3. Prompt Adaptation: Modify the prompts to dynamically adjust based on the detected input language and ensure consistency in the output language.
  4. Testing: Validate the feature by testing keywords and outputs across various languages to ensure accuracy and reliability.

Describe alternatives you've considered

  1. Using Google Cloud or DeepL APIs for translations, but these options introduce additional costs.
  2. Keeping the project limited to single-language support, which restricts usability.

Additional context
Adding multi-language support would make the project more inclusive and allow users from diverse linguistic backgrounds to benefit from its functionality. For example:

  • Input Keywords: "लिनक्स" (Hindi)
  • Expected Output: Relevant news articles about Linux in Hindi.

This feature aligns with the project's goal of making news retrieval accessible to a global audience.

@wahid18-maqs wahid18-maqs reopened this Nov 26, 2024
@wahid18-maqs wahid18-maqs changed the title Migrate API Implementation from Flask to FastAPI Add Multi-Language Support for News Keywords and Outputs Dec 4, 2024
@wahid18-maqs
Copy link
Author

please assign @hardik1408

@hardik1408
Copy link
Contributor

Hi @wahid18-maqs ,
Multi language support is not a priority for us as of right now

@innocentsoul333
Copy link

so is this a issue or not?

@hardik1408
Copy link
Contributor

This can obviously be done, but is not a priority

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

No branches or pull requests

3 participants