This program uses basic NLP to determine the language of a mystery text file. You are expected to provide as a command-line argument, the path of a folder (similiar to this), that contains subdirectories with files in a specific language. These subdirectories are used to train a model, which then is used to determine the language of the mystery.txt file.
cd src
javac Main.java
java Main.java <YOUR_FOLDER_PATH>