anonymize_for_review
Prepare a Word manuscript for double-blind review by masking self-citations, scrubbing identifying metadata, and flagging remaining author-revealing prose; saves a private mapping for later deanonymization.
Instructions
BETA (heuristic): review the flagged-items list in the result rather than trusting silently. Anonymize a manuscript for double-blind peer review, reversibly. Masks self-citations by the named authors ('Hurd (1999)' -> 'Author (1999)') keeping years and pages, rewrites their reference-list entries to 'Author (Year). [Details removed for peer review.]', and scrubs identifying metadata. Prose that identifies the author (Acknowledgments, 'my previous work', surnames outside citation syntax) is FLAGGED with locations, never auto-edited. Writes a reversal mapping JSON (default .anonymization.json, never overwritten) for deanonymize_document; KEEP IT PRIVATE. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| file_path | Yes | ||
| replacement | No | Author | |
| author_names | Yes | ||
| mapping_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||