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 language detection support, Improved Error Handling, and Improved Code Quality. #13

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

moheladwy
Copy link
Owner

This pull request introduces several enhancements and modifications to the script:

  1. Language Detection Support:

    • Added a method for detecting the language of input text.
    • Integrated the language detection functionality into the script's main workflow.
    • Added a method for detecting the language available in the system.
    • Added [-l, --list-langs] in the available options, and Updated the help function in the python script to include the new option.
  2. Improved Error Handling:

    • Enhanced error handling for edge cases, including invalid input and unsupported languages.
  3. Refactoring and Code Quality Improvements:

    • Refactored existing functions for better readability and maintainability.
    • Renamed variables and methods to align with the new functionality and improve clarity.
    • Removed redundant code and optimized logic for efficiency.
  4. Testing and Debugging Enhancements:

    • Updated or added test cases to cover new language detection features.
    • Improved debug logging to make tracing issues easier during execution.

This commit introduces several enhancements and modifications to the script:

1. **Language Detection Support:**
   - Added a method for detecting the language of input text.
   - Integrated the language detection functionality into the script's main workflow.

2. **Improved Error Handling:**
   - Enhanced error handling for edge cases, including invalid input and unsupported languages.

3. **Refactoring and Code Quality Improvements:**
   - Refactored existing functions for better readability and maintainability.
   - Renamed variables and methods to align with the new functionality and improve clarity.
   - Removed redundant code and optimized logic for efficiency.

4. **Testing and Debugging Enhancements:**
   - Updated or added test cases to cover new language detection features.
   - Improved debug logging to make tracing issues easier during execution.
…es to it, and provided to the extract text function, added function to retrieve the available languages, Added the [-l, --list-langs] in the available options, and Updated the help function to include the new option.
@moheladwy moheladwy added the enhancement New feature or request label Dec 16, 2024
@moheladwy moheladwy self-assigned this Dec 16, 2024
@moheladwy moheladwy linked an issue Dec 16, 2024 that may be closed by this pull request
@moheladwy moheladwy merged commit ce3759e into main Dec 16, 2024
2 checks passed
@moheladwy moheladwy deleted the AddLanguageDetectionSupport branch December 16, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arabic (Other) Language Support
1 participant