GithubHelp home page GithubHelp logo

ai-reverse-lookup's Introduction

Reverse Lookup Dictionary with GPT4

Reverse Lookup Dictionary is an interactive application that uses OpenAI's GPT-4 model to perform reverse dictionary lookups. Given a detailed description of a word, it will suggest a matching word from the specified language.

What it does

The application receives as input a detailed description of a word, along with a specified language. It then uses the GPT-4 model to generate a word in the chosen language that best matches the description.

The output is formatted in Markdown and includes:

  • Word (Pronunciation) Part of Speech
  • Definition in the chosen language
  • An example sentence using the word in the chosen language
  • A brief etymology of the word
  • A list of alternatives or synonyms in the chosen language

The response is entirely in the target language and does not include translations to other languages.

How to use

The application is designed to be interacted with through a simple user interface where you can input a description and select a language.

You can follow these steps to use the application:

  1. Input the description of the word in the text area provided
  2. Select the language in which you want to find the word
  3. Click on the "Generate" button to get the result
  4. The result will be displayed in the output section in a nicely formatted markdown

Getting Started

The application is built in TypeScript and uses Vercel's KV storage to store the results.

Prerequisites

  • Node.js
  • TypeScript
  • Vercel account (for KV storage)

Installation

Clone the repo:

git clone https://github.com/parlii/ai-reverse-lookup.git

Navigate to the project directory and install dependencies:

cd ai-reverse-lookup
npm install

Create an .env file and add your OpenAI API key:

OPENAI_API_KEY=your_openai_api_key

Start the development server:

npm run dev

The application is now running on localhost:3000.

Tech Stack

The application is built with the following technologies:

  • Next.js
  • TypeScript
  • Vercel KV
  • OpenAI API

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

License

This project is licensed under the terms of the MIT license.

ai-reverse-lookup's People

Contributors

parlii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.