Getting started with Multilanguage ChatGPT word-def plugin

Multi-language plugin for word-def package.

Installation

$ pipx install word-def-plugin-multilanguage-chatgpt

Features

  • Get word definition.

  • Get word synonym.

  • Get part-of-speech tags of a word.

  • Get usage examples.

Examples

word-def

You need to have the word-def package installed.

$ word-def --plugin-configuration-filepath plugin-config.toml get-definition joy eng
1. A feeling of great pleasure and happiness.
$ word-def --plugin-configuration-filepath plugin-config.toml get-synonym joy eng
1. happiness
2. delight
3. pleasure
4. bliss
5. euphoria
$ word-def --plugin-configuration-filepath plugin-config.toml get-pos-tags joy eng
1. noun.
2. verb.
$ word-def --plugin-configuration-filepath plugin-config.toml get-usage-examples joy eng
1. The children's laughter filled the room with joy and happiness.
2. She felt a sense of joy and contentment when she achieved her lifelong dream.
3. The music festival brought a lot of joy to the attendees.
4. Watching the sunset over the ocean always fills me with joy.
5. The birth of a baby is a moment of pure joy for the new parents.

Plugin configuration

The word-def documentation has more information about how to setup the plugin configuration file.

Plugin parameters

To configure the plugin, create the plugin-config.toml file similar to the one below:

openai_key="PERSONAL OPENAI KEY"

Contributing

Please reference to our contribution and code-of-conduct guidelines.