/thesaurus-lookup

A modern web application that allows users to look up synonyms and antonyms for any English word using the Thesaurus API. Features include a responsive design, loading indicators, and dynamic content display.

Primary LanguageJavaScriptMIT LicenseMIT

Word Synonyms & Antonyms Finder

A modern web application that allows users to look up synonyms and antonyms for any English word using the Thesaurus API. This app features a user-friendly interface, loading indicators, and dynamic content display.

Image

Features

  • Search for Words: Enter a word to find its synonyms and antonyms.
  • Dynamic Results: View synonyms and antonyms in a responsive layout.
  • Loading Spinner: Indicates when data is being fetched.
  • Error Handling: Displays appropriate messages if no results are found or if there's an error.

👤 Repo Visitors:

Visitor Counter

Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • API: Thesaurus API (API-Ninjas)

How to Use

  1. Clone the Repository

    git clone https://github.com/RojanSapkota/thesaurus-lookup.git
    cd thesaurus-lookup
  2. Open the Application

    Open index.html in your browser or use a local server to serve the files.

  3. API Key Setup

    For security reasons, the API key is not directly included in this repository. You need to set up a backend proxy to handle API requests securely.

  4. Usage

    • Enter a word in the input field.
    • Click the "Find" button to fetch synonyms and antonyms.
    • View results dynamically displayed on the page.

Code Overview

  • index.html: Main HTML structure of the application.
  • styles.css: Styles for the application layout and design.
  • script.js: JavaScript file containing the logic to interact with the Thesaurus API and update the UI.

Contributing

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Commit your changes.
  5. Push to the branch.
  6. Create a new Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or inquiries, please contact Rojan.