Skip to content

jayson-panganiban/rephrase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rephrase

A command-line tool to rephrase text in different styles (normal (default), casual, formal, academic, or filipino taglish for some 🧂) using OpenAI's API.

Installation

Prerequisites

Steps

  1. Install via pip

    $ pip install rephrase
  2. Set Your OpenAI API Key

    $ export OPENAI_API_KEY="your-api-key-here"

    Add it to your .bashrc, .zshrc, or equivalent to persist it.

Usage

Basic command

$ rephrase "The meeting is scheduled for tomorrow."

Available Styles

  • --style normal (default): Clear and natural rephrasing.
  • --style casual: Relaxed and informal tone.
  • --style formal: Polite and professional wording.
  • --style academic: Precise and scholarly language.
  • --style filipino: Taglish (Filipino-English mix).

Examples

Here are some sample inputs and outputs to demonstrate how rephrase works with different styles:

Command Output (example)
$ rephrase "I'm tired after work." "I'm exhausted from work."
$ rephrase "I'm tired after work." --style casual "I'm wiped out after work"
$ rephrase "I'm tired after work." --style formal "I find myself fatigued following work."
$ rephrase "I'm tired after work." -s academic "I experience fatigue subsequent to my workday."
$ rephrase "I'm tired after work." -s filipino "Pagod na ako after work."

Help

See all options:

rephrase --help