Add new field "fix grammar" in Content Resizing Features.#1032
Add new field "fix grammar" in Content Resizing Features.#1032
Conversation
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
peterwilsoncc
left a comment
There was a problem hiding this comment.
This is testing well.
It would be good to have some E2E tests added for the sub-feature for each of the providers.
The feature has tests in the files tests/cypress/integration/language-processing/resize_content-[provider name].test.js using the mocked response in tests/test-plugin/resize-content.json.
Tests aside, the code looks good. Thank you.
|
Apologies for not adding a comment on this but Jeff and I discussed this PR during our UAT yesterday and before we proceed more on this PR, there needs to be a decision on where best this particular functionality (grammar fixing) belongs. Right now this is added as part of the Content Resizing Feature and not sure that makes the most sense. Also not sure if it's a big enough feature to be a "stand-alone" Feature. Worth some discussion on the best approach for this and any other content-type manipulations (think spell check, tone change, clarification, etc). |
|
@dkotter I agree—it feels a bit misplaced in the content resizing section. I think creating a new section called “Content Manipulation” would make more sense. |
Yeah, I think lots of options to consider here: |
|
Perhaps rename "Content Resizing" to "Text Transformations" or "Authoring Tools" or "Writing Tools" that then includes Expand, Condense, Fix grammar (and potentially later Clarify, Professionalize, Summarize, Bulletize, whatever)? |
Description of the Change
This PR adds a new "Fix grammar and spelling" option to the Content Resizing feature. Users can now correct spelling errors and grammatical mistakes in paragraph blocks directly from the block editor toolbar, alongside the existing "Expand this text" and "Condense this text" options.
See Issue #820
Key Changes:
fix_grammar_promptproperty and default prompt toContentResizingfeature classfix_grammaras a validresize_typeparameterfix_grammarresize typeBenefits:
Verification Steps:
Issue #820
How to test the Change
Backend Settings:
Block Editor Integration:
Provider Compatibility:
Edge Cases:
Changelog Entry
Credits
Props @davidchandra
Checklist: