Skip to content

gravelfy/synonymes-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this project

This app is a linguistic tool based on OpenAI API. It allows you to find synonyms in the French language for a given word or sentence. It is a work in progress, and it is not intended to be used in production.

How to use it

Just type some word and voilà! You will get a list of synonyms for the word you typed. You can also type a sentence, and the app will try to find French synonyms for each word in the sentence.

Every word is clickable, and you can click on it to get synonyms for this word.

Tools used

The OpenAI model used is text-davinci-002.

This app is based on the OpenAI API quickstart tutorial. It uses the Next.js framework with React.

Setup

  1. If you don’t have Node.js installed, install it from here (Node.js version >= 14.6.0 required)

  2. Clone this repository

  3. Navigate into the project directory

    $ cd synonymes-ai
  4. Install the requirements

    $ npm install
  5. Make a copy of the example environment variables file

    On Linux systems:

    $ cp .env.example .env

    On Windows:

    $ copy .env.example .env
  6. Add your API key to the newly created .env file

  7. Run the app

    $ npm run dev

You should now be able to access the app at http://localhost:3000! For the full context behind this app, check out the tutorial.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published