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

Refactor Grammar Checker Instruction Prompt to Support Multiple Languages #10

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

tope-olajide
Copy link
Owner

Description:

This update refactors the Grammar Checker Instruction prompt to support multiple languages, enabling dynamic grammar checking based on the input language. The prompt now adjusts based on language rules, including regional variations, and includes additional grammar error categories.

Changes:

  • Language Support: The prompt now accommodates different languages, such as English (US), English (GB), French, etc., and adjusts grammar checking instructions accordingly.
  • Regional Variations: Added handling for language-specific differences, including spelling variations (e.g., “favourite” vs. “favorite” in English GB/US) and grammar rules (e.g., gender agreement in French).
  • Error Categories Expanded: New grammar error categories were added, including capitalization, sentence fragments, run-on sentences, and pronoun-antecedent agreement, to better capture language-specific errors.
  • Refined Instructions: Enhanced clarity and structure for better usability and more precise guidance on how to format the grammar check results.

Why this change?

This update improves the flexibility and accuracy of the grammar checker by enabling it to handle multiple languages and regional dialects, providing more comprehensive error checking across different language conventions.

…ages

- Updated the prompt to dynamically adjust based on the provided language.
- Ensured instructions are tailored to accommodate grammar rules and regional variations for different languages (e.g., English (US), English (GB), French, etc.).
- Expanded error categories to include language-specific grammar features (e.g., gender agreement for French, spelling variations for different English dialects).
@tope-olajide tope-olajide merged commit 56b9f1f into main Dec 3, 2024
1 check failed
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.

1 participant