-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
aiAI/ML relatedAI/ML relatedbackendBackend/API workBackend/API workfeatureNew feature implementationNew feature implementationfrontendFrontend/UI workFrontend/UI workmediumMedium priority - important but not blockingMedium priority - important but not blocking
Description
Problem
Different writing styles are mentioned in the user manual (Professional, Conversational, Academic, Creative, Technical) but not fully implemented.
Current Behavior
- Writing styles may be listed in UI
- Unclear if style transformation actually works
- Style differences may not be significant
- May only work in draft generation, not style conversion
Expected Behavior
- Users can select any writing style
- AI transforms existing text to match selected style
- Style transformation preserves meaning and facts
- Clear differences between styles
- Users can compare styles before committing
Implementation Guidance
- Create style transformation prompts for each style type
- Test that each style produces distinctly different output
- Add style selector to chapter editor
- Implement "Transform to [Style]" action
- Show preview before applying transformation
- Allow reverting to previous version
Files Likely Involved
backend/app/services/ai_service.py- Add style transformationbackend/app/prompts/style_templates.py- Create style prompts (if doesn't exist)frontend/src/components/chapters/StyleSelector.tsx- Style UIbackend/app/api/routes/style.py- Create endpoint
Acceptance Criteria
- All 5 writing styles implemented
- Each style produces clearly different output
- Users can transform existing text to any style
- Preview shows before/after comparison
- Users can revert to previous style
- Style transformation preserves facts and meaning
- Integration tests verify distinct style outputs
- E2E test covers style transformation flow
Blocked by
- Issue Implement robust error handling and fallback for AI service failures #41 (Implement robust error handling for AI service failures)
- Issue Implement AI draft generation from chapter questions and answers #55 (Implement AI draft generation)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aiAI/ML relatedAI/ML relatedbackendBackend/API workBackend/API workfeatureNew feature implementationNew feature implementationfrontendFrontend/UI workFrontend/UI workmediumMedium priority - important but not blockingMedium priority - important but not blocking