UNPKG

resume-anonymizer

Version:

A flexible NPM package for anonymizing resumes to reduce bias in hiring

35 lines 1.16 kB
export interface AIAnonymizationOptions { apiKey?: string; model?: string; rewordingLevel?: 'none' | 'light' | 'medium' | 'heavy'; preserveStructure?: boolean; } export declare function analyzeForAnonymization(data: any, options?: AIAnonymizationOptions): Promise<{ fieldsToAnonymize: { path: string; currentValue: string; reason: string; suggestedReplacement: string; category: "name" | "company" | "education" | "location" | "contact" | "other"; }[]; textFieldsWithPII: { path: string; detectedPII: { value: string; type: "name" | "company" | "location" | "email" | "phone" | "url"; replacement: string; }[]; }[]; rewordingSuggestions: { path: string; reason: string; originalText: string; rewordedText: string; }[]; } | { fieldsToAnonymize: any[]; textFieldsWithPII: any[]; rewordingSuggestions: never[]; }>; export declare function applyAIAnonymization(data: any, analysis: any, _options?: AIAnonymizationOptions): Promise<any>; //# sourceMappingURL=ai-anonymizer.d.ts.map