This application was created as part of a coding challenge. The challenge details can be found here.
The following resources were used for implementing and understanding the functionality of Bloom Filters and MurmurHash:
The Spell Checker application is designed to compare each word in the given text against a dictionary of correctly spelled words. If a word is not found in the dictionary, it is considered misspelled. The application then displays a list of all the misspelled words found in the text.
To run the Spell Checker application, follow these steps:
- Clone the repository.
- Run the application using the command
cargo build --release. This will generate the executable file in thetarget/releasedirectory calledspell-checker. - Generate the dictionary file by running the application with the following argument
--build <path-to-word-file>. For example,./spell-checker --build /usr/share/dict/words. - Run the application file and provide the text you want as argument to check for spelling errors.
- The application will display the misspelled words, if any.
You can run the following arguments with the application:
spell-checker --build <path-to-word-file>: This argument is used to generate the dictionary file. The dictionary file is used to compare the words in the text file to check for spelling errors.spell-checker [words]...: This argument is used to provide the words you want to check for spelling errors.spell-checker --help: This argument is used to display the help message.
Currently the application only accepts text files with one word per line. If you would like to use a different format, you need to update the read_file function in the main.rs file.