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.
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.
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.
-
If you don’t have Node.js installed, install it from here (Node.js version >= 14.6.0 required)
-
Clone this repository
-
Navigate into the project directory
$ cd synonymes-ai
-
Install the requirements
$ npm install
-
Make a copy of the example environment variables file
On Linux systems:
$ cp .env.example .env
On Windows:
$ copy .env.example .env
-
Add your API key to the newly created
.env
file -
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.