{"id":15066791,"url":"https://github.com/pmzi/wordsmith","last_synced_at":"2026-02-18T14:01:39.207Z","repository":{"id":256505157,"uuid":"855512609","full_name":"pmzi/WordSmith","owner":"pmzi","description":"WordSmith is a powerful CLI tool that leverages OpenAI's API to translate words, phrases, and sentences. It supports context-aware translations, batch processing from files, and customizable target languages, making it an essential tool for multilingual communication and language learning.","archived":false,"fork":false,"pushed_at":"2024-09-13T07:16:10.000Z","size":835,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T06:41:24.669Z","etag":null,"topics":["cli-app","dictionary","open-ai","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-11T01:43:59.000Z","updated_at":"2024-09-13T10:30:00.000Z","dependencies_parsed_at":"2024-09-13T15:37:37.505Z","dependency_job_id":null,"html_url":"https://github.com/pmzi/WordSmith","commit_stats":null,"previous_names":["pmzi/wordsmith"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pmzi/WordSmith","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmzi%2FWordSmith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmzi%2FWordSmith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmzi%2FWordSmith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmzi%2FWordSmith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmzi","download_url":"https://codeload.github.com/pmzi/WordSmith/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmzi%2FWordSmith/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278839866,"owners_count":26055018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-app","dictionary","open-ai","ruby"],"created_at":"2024-09-25T01:12:07.650Z","updated_at":"2025-10-07T20:27:49.850Z","avatar_url":"https://github.com/pmzi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordSmith\n\nWordSmith is a command-line tool for translating words, phrases, and words in context of a sentence.\n\n\u003cimg width=\"524\" alt=\"Screenshot 2024-09-13 at 12 14 05 AM\" src=\"https://github.com/user-attachments/assets/a18514b5-044d-474e-98ad-9cb814ada8e9\"\u003e\n\n## Features\n\n- Translate single words or phrases\n- Translate words within the context of a sentence\n- Read words from a file for batch translation\n- Optional caching for faster repeated translations\n- Specify target language for translations\n\n## Installation\n\n1. Ensure you have Ruby installed on your system (version 2.7 or higher recommended).\n\n2. Install the WordSmith gem:\n\n```\ngem install word_smith\n```\n\n3. Set up your OpenAI API key and Organization ID:\n\n```\nws --set-openai-api-key YOUR_API_KEY\nws --set-openai-org-id YOUR_ORG_ID\n```\n\nReplace `YOUR_API_KEY` and `YOUR_ORG_ID` with your actual OpenAI credentials.\n\n## Usage\n\nBasic usage:\n\n```\nws [word/phrase] [options]\n```\n\nExamples:\n\n1. Translate a single word:\n\n```\nws hello\n```\n\n2. Translate a phrase:\n\n```\nws good morning\n```\n\n3. Translate a word in context:\n\n```\nws a /random/ sentence\n```\n\n4. Translate words from a file:\n\n```\nws -f words.txt\n```\n\n5. Translate to a specific language:\n\n```\nws hello --target-language Spanish\n```\n\n6. Translate without using cache:\n\n```\nws hello --no-cache\n```\n\nOptions:\n\n- `-f, --file [FILE_PATH]`: Read words from a file\n- `--target-language [LANGUAGE_CODE]`: Specify target language for translation\n- `--no-cache`: Translate without using cache\n- `-h, --help`: Show help\n- `-v, --version`: Show version\n\n## Configuration\n\nSet OpenAI API key:\n\n```\nws --set-openai-api-key [key]\n```\n\nSet OpenAI Organization ID:\n\n```\nws --set-openai-org-id [key]\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmzi%2Fwordsmith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmzi%2Fwordsmith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmzi%2Fwordsmith/lists"}