@socketsecurity/lib
Version:
Core utilities and infrastructure for Socket.dev security tools
23 lines (22 loc) • 672 B
TypeScript
/**
* @fileoverview Word manipulation utilities for capitalization and formatting.
* Provides text transformation functions for consistent word processing.
*/
/**
* Capitalize the first letter of a word.
*/
/*@__NO_SIDE_EFFECTS__*/
export declare function capitalize(word: string): string;
/**
* Determine the appropriate article (a/an) for a word.
*/
/*@__NO_SIDE_EFFECTS__*/
export declare function determineArticle(word: string): string;
export interface PluralizeOptions {
count?: number;
}
/**
* Pluralize a word based on count.
*/
/*@__NO_SIDE_EFFECTS__*/
export declare function pluralize(word: string, options?: PluralizeOptions | undefined): string;