ac•ce•ca•re /ˌatʃːekˈaːre/ verb (Italian) 1 "to make blind"
accecare is a simple helper script that essentially takes a list of words and phrases and changes them to something else.
It's designed to be used with Pandoc to replace identifying information in an academic manuscript with anonymized (or blinded) details. Instead of manually searching and replacing your document before compiling a blinded document (and then undoing all the blinding to compile a non-blinded document), this script takes care of anonymization for you.
- Create a CSV file with two columns named
original
andreplacement
. Seereplacements.csv
for an example. - Make
accecare.py
executable withchmod a+x accecare.py
- Run
accecare.py
on a Markdown file and pipe the output to pandoc - That's it!
Ordinarily, you can compile example.md
as an HTML file with identifying information included like so:
pandoc example.md -s --template templates/author_info.html5 -o output/example.html
This creates a lovely manuscript.
To create a blinded manuscript, you can either edit example.md
by hand and remove all identifying information (boo), or pipe the output of accecare.py
through to pandoc (yay):
./accecare.py replacements.csv example.md | pandoc -s --template templates/author_info.html5 -o output/example_blinded.html
This creates a lovely anonymized manuscript.
This is a super simple and overly crude method for blinding manuscripts. With the example replacements.csv
, for instance, every occurrence of NASA would be replaced, even if it's just mentioned in the text.