Welcome to the Dictionary API and Website project! This project provides a powerful Dictionary API that allows users to search for meanings, phonetics, synonyms, antonyms, hypernyms, and parts of speech of words. It also features a Translator. In addition, a simple website using Django has been created to demonstrate the functionality of the API.
-
Dictionary API:
- Search for word meanings
- Get word phonetics
- Find synonyms and antonyms
- Explore word hypernyms (word hierarchy)
- Retrieve parts of speech
-
Translator:
- Translate text between languages
-
Website:
To run this project locally, you will need to have Python and Django installed. You can install Django and other required packages using the following commands after doing the following:
git clone https://github.com/Crane04/dictionary-api.git
cd lingo-query
- Set Up Virtual Environment (Optional but Recommended):
- If you prefer to work in a virtual environment, create and activate it:
python -m venv venv # Create virtual environment
source venv/bin/activate # Activate on macOS and Linux
workon venv # Activate on Windows
- Install Dependencies:
- Install the required packages for the project:
pip install -r requirements.txt
- Then install nltk wordnet
import nltk
nltk.download('wordnet')
- Start the Development Server:
- Run the Django development server to launch the website:
python manage.py runserver
-
Access the Website:
- Open your web browser and go to http://127.0.0.1:8000 to access the website.
-
Explore API and Translator:
- Use the website to explore the Dictionary API and Translator functionalities.
- /dictionary?word={word} - Dictionary
- /translator?from={from_lang}&to={to_lang}&text={sentence}
- Use the website to explore the Dictionary API and Translator functionalities.
- We welcome contributions to this project! To contribute:
Fork the repository.
- Create a new branch: git checkout -b feature-new-feature
- Make your changes and commit them: git commit -m "Add new feature"
- Push to the branch: git push origin feature-new-feature
- Create a pull request with a detailed description of your changes.
- If you have any questions or feedback, feel free to reach out at [email protected]