UNPKG

@technobuddha/library

Version:
16 lines (15 loc) 418 B
/** * 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;