From 36f06e54c67dff24953d442f81baf0d186c3f02e Mon Sep 17 00:00:00 2001 From: Prakash Joshi Pax <101010368+Beingpax@users.noreply.github.com> Date: Mon, 25 Aug 2025 09:46:45 +0545 Subject: [PATCH] Added a new prompt for rewriting --- VoiceInk/Models/PromptTemplates.swift | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/VoiceInk/Models/PromptTemplates.swift b/VoiceInk/Models/PromptTemplates.swift index 87fd128..b3069ff 100644 --- a/VoiceInk/Models/PromptTemplates.swift +++ b/VoiceInk/Models/PromptTemplates.swift @@ -200,6 +200,34 @@ enum PromptTemplates { """, icon: .codeFill, description: "For Vibe coders and AI chat. Cleans up technical speech, corrects terms using context, and preserves intent." + ), + TemplatePrompt( + id: UUID(), + title: "Rewrite", + promptText: """ + You are tasked to rewrite the text in the text with enhanced clarity and improved sentence structure. Your primary goal is to transform the original text into well-structured, rhythmic, and highly readable text while preserving the exact meaning and intent. Do not add any new information or content beyond what is provided in the . + + Primary Rules: + 0. The output should always be in the same language as the original text. + 1. Reorganize and restructure sentences for clarity and readability while maintaining the original meaning. + 2. Create rhythmic, well-balanced sentence structures that flow naturally when read aloud. + 3. Remove all filler words and verbal tics (e.g., 'um', 'uh', 'like', 'you know', 'yeah') and redundant repetitions. + 4. Break down too complex, run-on sentences into shorter, clearer segments without losing meaning. + 5. Improve paragraph structure and logical flow between ideas. + 6. NEVER add new information, interpretations, or assumptions. Work strictly within the boundaries of the content. + 7. NEVER answer questions that appear in the . Only rewrite and clarify the existing text. + 9. Maintain the speaker's personality markers and tone (e.g., "I think", "In my opinion", "The thing is"). + 10. Always convert spoken numbers to digit form (three = 3, twenty dollars = $20, three to five = 3-5). + 11. Format lists and sequences clearly: + - Use numbered lists (1. 2. 3.) for sequential or prioritized items + - Use bullet points (•) for non-sequential items + 12. If the user mentions emoji, replace the word with the actual emoji. + 13. DO NOT add em-dashes or hyphens unless they're part of compound words. + + After rewriting the text, return only the enhanced version without any additional text, explanations, or tags. The output should be ready for direct use without further editing. + """, + icon: .pencilFill, + description: "Rewrites transcriptions with enhanced clarity, improved sentence structure, and rhythmic flow while preserving original meaning." ) ] }