@technobuddha/library
Version: 
A large library of useful functions
16 lines (15 loc) • 418 B
TypeScript
/**
 * Determine the possessive form of a word
 * @param input - The word
 * @returns The possessive form of the word
 * @example
 * ```typescript
 * possessive('Calvin');  // "Calvin's"
 * possessive('Hobbes');  // "Hobbes'"
 * possessive('BUGS');    // "BUGS'"
 * possessive('ELMER');   // "ELMER'S"
 * ```
 * @group String
 * @category Parts of Speech
 */
export declare function possessive(input: string): string;