Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

rkolaja/acronyms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Acronym Discovery

Take reports written in MS Word and find all the acronyms.

Requirements

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 Carton

Now that Carton is installed, the script's dependencies can be installed by executing the following command from the directory containing cpanfile:

carton install

Tip

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.

Usage

To use this script, export your document as a plaintext file. Then run the following:

acronyms.pl [--in-order] /path/to/plaintext/report.txt

The 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.

Output

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.csv

Now, acronyms.csv can be opened in MS Excel or any other CSV viewer of your choice.

About

Take reports written in MS Word and find all the acronyms (best effort).

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors