A text-editor application with the following features:
- Spelling correction
- AutoComplete option
- Markov Text generator
- Readability score calculation
- Word Path generator
Project Structure
- src: project source code
- deps_src: source file dependencies
- lib: library dependencies
- test: JUnit tests
- test_cases: test data files
- .project: Eclipse project file
- .classpath
Prerequisites
Eclipse IDE - for download and install go to: https://www.eclipse.org/
Set-up
- Download the project on your drive.
- Create a new Java Project in your Eclipse workspace.
- Import the files: File, Import, Select "File System", Next, Browse and choose the root directory where you downloaded the files, Finish.
Testing
There are JUnit test files in the test folder.
Using the Text Editor Application
- Run the project.
- In the GUI, type, load text by using the "Load text" button or use copy/paste.
- By selecting the "Spelling suggestions" option the app will highlight spelling mistakes and the "AutoComplete" option will provide 6 suggestions for the word you are typing.
- Calculate readability score of your text using the "Flesch Index" button.
- The "Edit distance" button calculates the word path between two words: cake -> caked -> coked -> cowed -> crowed -> crowd Number of steps: 5
- The "Generate Markov Text" function works by generating new text based on the text from step 2 keeping the original sequence of neighboring words.
- The "Clear" button clears the text area.
Author
Andreea Teodor
Credits
This application was written as part of an assignment for: Data Structures and Performance โ University of California San Diego on Coursera (the source files in the deps_src folder and the GUI Application were provided as a starter code).