Project

geekdict

0.0
Low commit activity in last 3 years
No release in over a year
A command line tool for translation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
~> 2.13.0

Runtime

~> 2.7.1
~> 1.2.1
 Project Readme

Gem Version

Geek Dict

A command line tool for English-Chinese translation.

Install

You can install via rubygems:

gem install geekdict

Configure

This translate uses OpenAI's GPT-3.5. Ensure you have OPENAI_API_KEY configured as environment variable.

Commands

Translate a word

$geekdict t test
测试 (cè shì)

Explanation:
The word "测试" in Chinese means "test" in English. It refers to the process of evaluating or examining something to determine its quality, performance, or knowledge. It can be used in various contexts, such as academic exams, software testing, or product quality testing.

Example:
1. 我们明天有一场数学测试。
(Wǒmen míngtiān yǒu yī chǎng shùxué cèshì.)
We have a math test tomorrow.

2. 这个软件需要经过严格的测试才能发布。
(Zhège ruǎnjiàn xūyào jīngguò yángé de cèshì cáinéng fābù.)
This software needs to undergo rigorous testing before it can be released.

Command Help

Use help command to get detail information.

$geekdict
Commands:
  geekdict help [COMMAND]  # Describe available commands or one specific command
  geekdict t               # Translate a word

$geekdict help t
Usage:
  geekdict t

Options:

-d, [--debug], [--no-debug] -o, [--open], [--no-open]

Translate a word

Development

bin/console
pry>GeekDict::CLI.start(['t','test'])

Test

rspec

Build

gem build geekdict.gemspec

Publish

gem push geekdict-<VERSION>.gem

License

MIT license