Project Structure
synonyms-antonyms-finder/
│
├── app.py
├── static/
│ ├── styles.css
│ └── script.js
├── templates/
│ └── index.html
└── README.md
README.md
# Synonyms and Antonyms Finder
This web application built with Flask allows users to find synonyms and antonyms for a given word using the NLTK library and WordNet database. It features a simple user interface where users can input a word, and the application fetches and displays related synonyms and antonyms.
## Features
- Input a word and find its synonyms and antonyms.
- Display results side by side in a user-friendly format.
## Technologies Used
- Flask: Python web framework for building the backend server.
- NLTK (Natural Language Toolkit): Python library for natural language processing tasks.
- WordNet: Lexical database for the English language, used to find synonyms and antonyms.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/synonyms-antonyms-finder.git
cd synonyms-antonyms-finder
- Install dependencies. Make sure you have Python and pip installed:
pip install flask nltk
- Download NLTK resources. Run Python in your terminal:
import nltk
nltk.download('wordnet')
- Run the application:
python app.py
- Open your web browser and go to
http://localhost:5000to use the application.
Usage
- Enter a word in the input field and click "Find".
- Synonyms and antonyms related to the word will be displayed side by side.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Log in or sign up for Devpost to join the conversation.