Automatically adjusts your sentence to correct grammar and match the desired communication style.
- Corrects grammatical errors
- Adjusts the tone accordingly
-
Node.js version
>= 18.17.0
is required.
npm install -g naturalify
Or clone the repository and run:
git clone https://github.com/ytoshiki/naturalify.git
cd naturalify
npm install
To use Naturalify, you need to set your OpenAI API key as an environment variable.
💡 Each request consumes approximately 100 tokens, which costs around $0.0000825 when using the
gpt-4o-mini
model.
set NATURALIFY_API_KEY="your-api-key"
$env:NATURALIFY_API_KEY="your-api-key"
export NATURALIFY_API_KEY="your-api-key"
If you're running Naturalify locally, you can create a .env
file in the root directory and add your API key like this:
NATURALIFY_API_KEY=your-api-key
You can configure Naturalify with the following environment variables:
Variable | Description | Default |
---|---|---|
NATURALIFY_API_KEY |
(Required) Your OpenAI API key | – |
MODEL |
OpenAI model to use | gpt-4o-mini |
MAX_TOKEN |
Maximum number of tokens for a single completion | 250 |
TEMPERATURE |
Sampling temperature (controls randomness) | 1 |
NATURALIFY_DB_PATH |
Directory path to store the SQLite database |
~/.naturalify or .naturalify
|
DB_FILE |
SQLite database file name |
Simply run the following command:
naturalify
Or if you're running locally, run the following command:
npm run dev
Command | Description |
---|---|
naturalify |
Adjust your sentence to make it more natural. |
naturalify history |
Show the history of all adjusted texts. |
naturalify clear-history |
Clear all the text adjustment history. |
naturalify delete-database |
Delete the entire history database. |
naturalify examples |
Pick a useful sentence from common work-related communication examples. |
This project is licensed under the MIT License.
See the LICENSE file for details.