Python program for defining macroeconomics terms using the McConnell Brue Economics textbook
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

McConnell Brue Macroeconomics Glossary

Python program for defining macroeconomics terms using the McConnell Brue Economics textbook. This program allows for searching the glossary and supports fuzzy-matching (every search will return a term, whichever is the closest). There are two ways to use this program:

1. Terms as arguments

Executing followed by a list of terms is the simplest way to get a glossary definition.


For example, running ./ "aggregate demand" would return:

"Aggregate Demand" output

2. Lookup from file

Another method is to create a delimited file of the terms that you would like defined.

./ FILE_NAME.txt

The file must have the extension .txt, that is how the program knows to load it. Optionally, you can provide a second argument to denote the term delimiter that you used in the file. For example, to define the terms in the following file:

aggregate demand, capital gains, international monetary fund

you would execute the command ./ FILE_NAME.txt ", ". This would produce the output:

"Aggregate Demand" output

This argument setup looks like ./ FILE_NAME.txt OPTIONAL_DELIMITER="\n". If you provide no second argument for the delimiter, the program will default to \n, newlines as the delimiter.

Fuzzy Match

You'll notice that international monetary fund -> International Monetary Fund (IMF) appears. This is because there was no direct match for international monetary fund. What the program found instead was International Monetary Fund (IMF) because that was the closest match in the glossary.

Every search using this program will return a result. If the result is less than 100% similar to the search than the above arrowing-matching format will be displayed.