Concise
Clear, brief, message-first communication.
The TextRewriter engine reshapes any input into a target
communication style while preserving meaning. Three built-in profiles,
multilingual support, and streaming events let you give users a
"rephrase as professional" or "make this concise" affordance without
sending their drafts anywhere.
Clear, brief, message-first communication.
Formal register suitable for business and client contexts.
Warm, approachable, conversational tone.
The CommunicationStyle enum offers three calibrated profiles
that the engine maps to distinct prompt templates. Each profile is tuned to
preserve facts and structure while reshaping tone, register, and pacing.
CommunicationStyle.ConciseClear and brief. The model strips fillers, redundancies, and qualifying clauses to produce the shortest accurate version. Use for status updates, headlines, and product copy.
CommunicationStyle.ProfessionalFormal register appropriate for business and client communication. The model normalises contractions, removes slang, and adopts measured phrasing. Use for emails, proposals, and external messaging.
CommunicationStyle.FriendlyWarm and approachable. The model softens directives, adds conversational connectives, and prefers contractions where appropriate. Use for in-app onboarding, support replies, and consumer-facing copy.
using LMKit.Model; using LMKit.TextEnhancement; var model = LM.LoadFromModelID("qwen3.5:4b"); var rewriter = new TextRewriter(model); string casual = "hey so basically the build's done and ya it works pretty good"; string concise = rewriter.Rewrite(casual, TextRewriter.CommunicationStyle.Concise); string professional = rewriter.Rewrite(casual, TextRewriter.CommunicationStyle.Professional); string friendly = rewriter.Rewrite(casual, TextRewriter.CommunicationStyle.Friendly); Console.WriteLine(concise); // "Build complete. Working as expected." Console.WriteLine(professional); // "The build has completed successfully and is functioning as expected." Console.WriteLine(friendly); // "Great news! The build is done and working really well."
"Make this professional" / "Make this friendly" buttons in any draft window. Output is generated locally so the email content never touches a third-party service.
Rewrite agent replies to match brand voice. Pair with TextCorrection for grammar pass + tone pass before send.
Draft once, generate three variants for A/B testing. Concise for ads, Professional for white-papers, Friendly for social.
Adapt engineering write-ups for non-technical stakeholders. Friendly variant for status emails, Professional for executive summaries.
Normalise tone before machine translation. A consistent register source produces more consistent target translations.
Generate friendly variants of system messages and microcopy. Improve conversion with warmer phrasing without losing precision.
TextRewriterSealed partial class. Construct with an LM, call Rewrite or RewriteAsync with a CommunicationStyle.
CommunicationStyleEnum: Concise, Professional, Friendly. Each value maps to a calibrated prompt template internally.
AfterTextCompletionStreaming event for chunk-by-chunk progress. Subscribe to drive live preview UIs and reactive editors.
TextCorrectionCompanion class for grammar and spelling. Run before TextRewriter to fix mechanics first, then style.
Working console demos on GitHub, step-by-step how-to guides on the docs site, and the API reference for the classes used on this page.