word-frequency-counter
Version:
A word frequency counter
11 lines (10 loc) • 401 B
TypeScript
type ProtectionMap = Map<string, string>;
export declare class Protection {
private randomStringGenerator;
private protectionMap;
constructor(protectedWords: string[], randomStringGenerator: () => string);
buildProtectionMap: (protectedWords: string[]) => ProtectionMap;
addWordProtection: (text: string) => string;
removeWordProtection: (text: string) => string;
}
export {};