/** * Linguistic Helpers * * Utilities for verb conjugation, noun pluralization, and linguistic inference. * Used for auto-generating forms, events, and semantic metadata. * * @packageDocumentation */ /** * Capitalize the first letter of a string */ export declare function capitalize(s: string): string; /** * Preserve the case of the original string in the replacement */ export declare function preserveCase(original: string, replacement: string): string; /** * Check if a character is a vowel */ export declare function isVowel(char: string | undefined): boolean; /** * Split a PascalCase or camelCase string into words * * @example * ```ts * splitCamelCase('BlogPost') // => ['Blog', 'Post'] * splitCamelCase('userProfile') // => ['user', 'Profile'] * ``` */ export declare function splitCamelCase(s: string): string[]; /** * Convert words to kebab-case (URL-safe slug) * * @example * ```ts * toKebabCase('Blog Post') // => 'blog-post' * toKebabCase('BlogPost') // => 'blog-post' * ``` */ export declare function toKebabCase(s: string): string; /** * Convert verb to past participle (create → created, publish → published) * * @example * ```ts * toPastParticiple('create') // => 'created' * toPastParticiple('publish') // => 'published' * toPastParticiple('submit') // => 'submitted' * ``` */ export declare function toPastParticiple(verb: string): string; /** * Convert verb to actor noun (create → creator, publish → publisher) * * @example * ```ts * toActor('create') // => 'creator' * toActor('publish') // => 'publisher' * toActor('submit') // => 'submitter' * ``` */ export declare function toActor(verb: string): string; /** * Convert verb to present 3rd person (create → creates, publish → publishes) * * @example * ```ts * toPresent('create') // => 'creates' * toPresent('publish') // => 'publishes' * toPresent('carry') // => 'carries' * ``` */ export declare function toPresent(verb: string): string; /** * Convert verb to gerund (create → creating, publish → publishing) * * @example * ```ts * toGerund('create') // => 'creating' * toGerund('publish') // => 'publishing' * toGerund('run') // => 'running' * ``` */ export declare function toGerund(verb: string): string; /** * Convert verb to result noun (create → creation, publish → publication) * * @example * ```ts * toResult('create') // => 'creation' * toResult('publish') // => 'publication' * toResult('generate') // => 'generation' * ``` */ export declare function toResult(verb: string): string; /** * Auto-pluralize a noun * * @example * ```ts * pluralize('post') // => 'posts' * pluralize('category') // => 'categories' * pluralize('person') // => 'people' * pluralize('child') // => 'children' * ``` */ export declare function pluralize(singular: string): string; /** * Auto-singularize a noun (reverse of pluralize) * * @example * ```ts * singularize('posts') // => 'post' * singularize('categories') // => 'category' * singularize('people') // => 'person' * ``` */ export declare function singularize(plural: string): string; //# sourceMappingURL=linguistic.d.ts.map