A NodeJS implementation of a function that counts unique names in a transaction
data/
: Contains CSV sheets used for the project. Each CSV should have each alias point only towards a single namenicknames/
: CSV files containing nicknames and names that reference the same valuefirstnames/
: TXT files containing first names in the English languagesurnames/
: TXT files containing surnames in the English language
tests/
: Contains the script file and test data for the main functiontest-data.csv
: Test data for the functiontest.js
: Test script
spell-checker.js
: An implementation of a spell checker, using data that consists every first and last name in the English language (First and Surname CSV)nickname-checker.js
: A function that checks if 2 first names are nicknames of each other (Common nickname CSV)count-names.js
: The main function, uses functions defined in the files listed earlier to count how many unique names are in a transaction
# Run the test script
node tests/test.js
# That's it! No additional dependencies are needed in order to run the code