classifai icon indicating copy to clipboard operation
classifai copied to clipboard

Fix Title Generation prompt to support sentence case formatting

Open jeffpaul opened this issue 6 months ago • 0 comments

Describe the bug

Update the Title Generation feature to ensure sentence case can be reliably enforced through prompt adjustments. Currently, even when editing the prompt to request sentence case formatting (e.g. “Generate a title in sentence case...”), the result still frequently returns in title case or other formats.

This enhancement should evaluate:

  • Whether prompt instructions are being properly respected by the AI provider.
  • If post-processing can be used to enforce sentence casing when specifically requested via UI settings or prompt config.

Steps to Reproduce

Some editorial workflows require sentence case titles for consistency, branding, or style guide reasons. The inability to enforce this formatting creates friction for users who must manually adjust AI-generated titles that do not follow the expected format.

Screenshots, screen recording, code snippet

  • Add a UI option or prompt variable to toggle sentence case preference explicitly.
  • Consider integrating a light post-processing step (e.g., PHP function or JS utility) to enforce sentence case when selected.
  • Ensure changes are compatible with existing prompt customization flows.

Environment information

No response

WordPress information

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

jeffpaul avatar May 30 '25 02:05 jeffpaul