Take reports written in MS Word and find all the acronyms.
Perl and Carton must be installed on your host. If you're running on Linux, Perl is probably already available. To install Carton system wide, run the following:
sudo cpanm -n CartonNow that Carton is installed, the script's dependencies can be installed by
executing the following command from the directory containing cpanfile:
carton installTip
This project ships with a devcontainer. Use VS Code to open this repository inside a devcontainer and save yourself the hassle of installing dependencies. You'll need to ensure Docker is installed.
To use this script, export your document as a plaintext file. Then run the following:
acronyms.pl [--in-order] /path/to/plaintext/report.txtThe optional --in-order switch tells the tool to print acronym counts in the
order they first appear in the input file.
Note
If using the devcontainer, copy the text file to the same directory as
acronyms.pl, else it won't be available in the container.
The discovered acronyms and number of occurrences will be printed to the terminal in CSV format. To capture this in a file, use a redirect as follows:
acronyms.pl /path/to/plaintext/report.txt > acronyms.csvNow, acronyms.csv can be opened in MS Excel or any other CSV viewer of your
choice.