UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

163 lines 4.62 kB
/** * Content Diversification Engine * * Generates diverse variations of content using different voices, perspectives, * and structural approaches while maintaining authenticity and avoiding AI detection patterns. */ export type Voice = 'academic' | 'technical' | 'executive' | 'casual'; export type Perspective = 'first-person' | 'third-person' | 'neutral'; export type Structure = 'bullets' | 'narrative' | 'qa' | 'tutorial' | 'comparison'; export type Tone = 'formal' | 'conversational' | 'enthusiastic' | 'matter-of-fact'; export type Length = 'concise' | 'standard' | 'comprehensive'; export interface DiversificationOptions { voice?: Voice; perspective?: Perspective; structure?: Structure; tone?: Tone; length?: Length; } export interface ContentVariation { content: string; options: DiversificationOptions; score: { authenticity: number; diversity: number; }; changes: string[]; } export interface DiversificationResult { original: string; variations: ContentVariation[]; metadata: { originalVoice: Voice | 'mixed'; originalLength: number; variationsGenerated: number; }; } /** * Core Content Diversification Engine */ export declare class ContentDiversifier { private voiceCharacteristics; constructor(); /** * Generate multiple variations of content with different options */ diversify(content: string, optionsList: DiversificationOptions[]): Promise<DiversificationResult>; /** * Generate a single variation with specified options */ generateVariation(content: string, options: DiversificationOptions): Promise<ContentVariation>; /** * Transform content from one voice to another */ transformVoice(content: string, _fromVoice: Voice | 'mixed', toVoice: Voice): string; /** * Transform to academic voice */ toAcademicVoice(content: string): string; /** * Transform to technical voice */ toTechnicalVoice(content: string): string; /** * Transform to executive voice */ toExecutiveVoice(content: string): string; /** * Transform to casual voice */ toCasualVoice(content: string): string; /** * Change perspective of content */ changePerspective(content: string, perspective: Perspective): string; /** * Convert to first-person perspective */ toFirstPerson(content: string): string; /** * Convert to third-person perspective */ toThirdPerson(content: string): string; /** * Convert to neutral perspective */ toNeutral(content: string): string; /** * Restructure content into different format */ restructure(content: string, structure: Structure): string; /** * Convert to bullet point format */ toBulletPoints(content: string): string; /** * Convert to narrative format */ toNarrative(content: string): string; /** * Convert to Q&A format */ toQA(content: string): string; /** * Convert to tutorial format */ toTutorial(content: string): string; /** * Convert to comparison format */ toComparison(content: string): string; /** * Adjust tone of content */ adjustTone(content: string, tone: Tone): string; /** * Convert to formal tone */ toFormal(content: string): string; /** * Convert to conversational tone */ toConversational(content: string): string; /** * Convert to enthusiastic tone */ toEnthusiastic(content: string): string; /** * Convert to matter-of-fact tone */ toMatterOfFact(content: string): string; /** * Adjust length of content */ adjustLength(content: string, length: Length): string; /** * Shorten content */ toConcise(content: string): string; /** * Expand content */ toComprehensive(content: string): string; /** * Generate before/after example pair */ generateBeforeAfter(topic: string): Promise<{ before: string; after: string; }>; /** * Generate diverse scenarios for a concept */ generateDiverseScenarios(concept: string, count: number): Promise<string[]>; private initializeVoiceCharacteristics; private detectVoice; private scoreAuthenticity; private scoreDiversity; private levenshteinDistance; private splitIntoSentences; private statementToQuestion; private generateAIHeavyContent; } //# sourceMappingURL=content-diversifier.d.ts.map