Word Analyzer is a Java-based project that provides text analysis capabilities. It includes a web interface for users to input text and perform various operations such as analyzing word frequency, replacing words, and removing words. The project is designed to help users gain insights into their text data and perform text manipulation tasks easily.
To set up the project, follow these steps:
-
Clone the repository:
git clone https://github.com/harshil748/Java-Mini-Project.git cd Java-Mini-Project
-
Set up the development container (optional but recommended):
- Ensure you have Docker installed on your machine.
- Open the project in a code editor that supports development containers (e.g., Visual Studio Code).
- Follow the prompts to set up the development container.
-
Build the project:
javac WordAnalyzer.java
-
Launch the project:
java WordAnalyzer
- Open the web interface by navigating to
http://localhost:8080
in your web browser. - Enter the text you want to analyze in the provided textarea.
- Click the "Analyze Text" button to analyze the word frequency in the text.
- The results will be displayed, showing the word frequency, most frequent word, and least frequent words.
- Click the "Replace Word" button.
- Enter the word you want to replace and the new word in the prompts.
- The text will be updated with the replaced word, and the analysis results will be refreshed.
- Click the "Remove Word" button.
- Enter the word you want to remove in the prompt.
- The text will be updated with the word removed, and the analysis results will be refreshed.
Contributions are welcome! If you would like to contribute to the project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b my-feature-branch
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your forked repository:
git push origin my-feature-branch
- Create a pull request to the main repository, describing your changes and the problem they solve.
Please ensure your code follows the project's coding standards and includes appropriate tests.
Thank you for contributing!