{"id":17054566,"url":"https://github.com/grantcarthew/python-define","last_synced_at":"2025-04-12T17:07:19.165Z","repository":{"id":177538701,"uuid":"660081474","full_name":"grantcarthew/python-define","owner":"grantcarthew","description":"An AI-powered command-line linguistics assistant.","archived":false,"fork":false,"pushed_at":"2024-10-22T06:17:37.000Z","size":74,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T06:44:08.863Z","etag":null,"topics":["ai","chatgpt","claude","cli","linguistics","llm","python","xai"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grantcarthew.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":"2023-06-29T07:49:57.000Z","updated_at":"2024-10-31T03:19:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f039ebf4-8645-4707-a517-4a366d9c4d1f","html_url":"https://github.com/grantcarthew/python-define","commit_stats":null,"previous_names":["grantcarthew/python-define"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantcarthew%2Fpython-define","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantcarthew%2Fpython-define/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantcarthew%2Fpython-define/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantcarthew%2Fpython-define/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grantcarthew","download_url":"https://codeload.github.com/grantcarthew/python-define/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602312,"owners_count":21131616,"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","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":["ai","chatgpt","claude","cli","linguistics","llm","python","xai"],"created_at":"2024-10-14T10:15:10.081Z","updated_at":"2025-04-12T17:07:19.134Z","avatar_url":"https://github.com/grantcarthew.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# define\n\nAn AI-powered command-line linguistics assistant.\n\nIf you're like me, you often feel unsure about the spelling of words, and sometimes even the definition of a word. Perhaps you're a programmer trying to come up with a name for that variable, function, data, or whatever else.\n\nThe 'define' command is a godsend. It's one of the best things to come out of the Artificial Intelligence boom.\n\nIt uses a Large Language Model API to query definitions of words, correct spelling mistakes, and provide synonyms as well as antonyms.\n\nThe 'define' command will cost you less than $2 USD per month for typical use.\n\n## define IS NOT\n\n- A general purpose AI client\n- A free tool to use, you will need an AI API Key\n- Always perfect in its response\n\n## Installation\n\nFirst install [pipx](https://pypa.github.io/pipx/)\n\n```shell\nexport DEFINE_API_KEY=\"\u003cyour-ai-api-key\u003e\"\nexport DEFINE_BASE_URL=\"\u003cyour-ai-base-url\u003e\"     # Defaults to https://api.x.ai/v1\nexport DEFINE_MODEL_NAME=\"\u003cyour-ai-model-name\u003e\" # Defaults to grok-beta\n\npipx install python-define\n\n# Test it installed correctly\ndefine Aussie\n```\n\nPackage Address: https://pypi.org/project/python-define/\n\n## Supported AI Platforms\n\n- X.AI (Recommended):\n  - Console: [console.x.ai](https://console.x.ai/)\n  - Base URL: `https://api.x.ai/v1`\n  - Model Name: `grok-beta`\n- Anthropic:\n  - Console: [console.anthropic.com](https://console.anthropic.com/)\n  - Base URL: `https://api.anthropic.com`\n  - Model Name: `claude-3-5` [reference](https://docs.anthropic.com/en/docs/about-claude/models)\n- OpenAI:\n  - Platform: [platform.openai.com](https://platform.openai.com/)\n  - Base URL: `https://api.openai.com/v1/`\n  - Model Name: `gpt-4o` [reference](https://platform.openai.com/docs/models)\n\n## Examples\n\n```markdown\n\u003e $ define acomodate\n\nSpelling: Accommodate\nDefinition: To provide lodging or sufficient space for; to fit in with the wishes or needs of.\nCategory: Verb - a word that describes an action, state, or occurrence.\n\nSynonyms:\n1. House\n2. Lodge\n3. Shelter\n4. Fit\n5. Hold\n6. Contain\n7. Adapt\n8. Adjust\n9. Conform\n10. Serve\n\nAntonyms:\n1. Displace\n2. Evict\n3. Reject\n4. Refuse\n5. Turn away\n6. Inconvenience\n7. Disorganize\n8. Misfit\n9. Disturb\n10. Upset\n\n\n\u003e $ define A variable that holds key/value data\n\nSpelling: Dictionary\nDefinition: A data structure that holds key/value pairs, allowing for efficient retrieval of values based on their associated keys.\nCategory: Noun - a word that represents a person, place, thing, or idea.\n\nSynonyms:\n1. Hashmap\n2. Hashtable\n3. Map\n4. Associative array\n5. Key-value store\n6. Lookup table\n7. Symbol table\n8. Index\n9. Registry\n10. Catalog\n\nAntonyms:\n1. List\n2. Array\n3. Sequence\n4. Stack\n5. Queue\n6. Set\n7. Collection\n8. Series\n9. Chain\n10. Line\n\n\n\u003e $ define orsom\n\nSpelling: Awesome\nDefinition: Extremely impressive or daunting; inspiring great admiration, apprehension, or fear.\nCategory: Adjective - a word that describes or modifies a noun or pronoun.\n\nSynonyms:\n1. Amazing\n2. Astonishing\n3. Astounding\n4. Breathtaking\n5. Impressive\n6. Magnificent\n7. Marvelous\n8. Stunning\n9. Wonderful\n10. Spectacular\n\nAntonyms:\n1. Unimpressive\n2. Ordinary\n3. Mediocre\n4. Common\n5. Dull\n6. Boring\n7. Unremarkable\n8. Uninspiring\n9. Mundane\n10. Plain\n\n\n\u003e $ define god send\n\nSpelling: Godsend\nDefinition: A very helpful or valuable event, person, or thing.\nCategory: Noun - a word that functions as the name of a specific object or set of objects.\n\nSynonyms:\n1. Blessing\n2. Boon\n3. Windfall\n4. Benefit\n5. Advantage\n6. Gift\n7. Aid\n8. Help\n9. Miracle\n10. Treasure\n\nAntonyms:\n1. Curse\n2. Misfortune\n3. Disaster\n4. Calamity\n5. Hindrance\n6. Burden\n7. Drawback\n8. Obstacle\n9. Problem\n10. Nuisance\n\n\n\u003e $ define horseduvers\n\nSpelling: Hors d'oeuvres\nDefinition: Small dishes served before a meal or at a party.\nCategory: Noun - a word that functions as the name of a specific object or set of objects.\n\nSynonyms:\n1. Appetizers\n2. Starters\n3. Canapés\n4. Nibbles\n5. Snacks\n6. Finger food\n7. Tapas\n8. Antipasti\n9. Amuse-bouches\n10. Tidbits\n\nAntonyms:\n1. Main courses\n2. Entrées\n3. Main dishes\n4. Principal dishes\n5. Main meals\n6. Main servings\n7. Main plates\n8. Main courses\n9. Main fare\n10. Main entrees\n\n\n\u003e $ define cricky\n\nSpelling: Crikey\nDefinition: An exclamation of surprise or astonishment.\nCategory: Interjection - a word or phrase that expresses a sudden emotion or reaction.\n\nSynonyms:\n1. Blimey\n2. Gosh\n3. Wow\n4. Jeez\n5. Goodness\n6. Holy cow\n7. My word\n8. Oh my\n9. Heavens\n10. Yikes\n\nAntonyms: (Note: Interjections typically do not have direct antonyms, but here are some expressions of calm or indifference)\n1. Meh\n2. Whatever\n3. No big deal\n4. So what\n5. Who cares\n6. Fine\n7. Okay\n8. Alright\n9. Sure\n10. Alright then\n\n\n\u003e $ define I don't know what it's called, but when you are scared of crouds?\n\nSpelling: Crowds\nDefinition: Large groups of people gathered together.\nCategory: Noun - a word that represents a person, place, thing, or idea.\n\nSpelling: Agoraphobia\nDefinition: An anxiety disorder characterized by an intense fear of places or situations where escape might be difficult or help unavailable, often leading to avoidance of crowds or open spaces.\nCategory: Noun - a word that represents a person, place, thing, or idea.\n\nSynonyms:\n1. Fear of open spaces\n2. Social anxiety\n3. Panic disorder\n4. Claustrophobia (related but different)\n5. Anxiety disorder\n6. Fear of public places\n7. Fear of leaving home\n8. Fear of being trapped\n9. Fear of being helpless\n10. Fear of being embarrassed\n\nAntonyms:\n1. Sociability\n2. Extroversion\n3. Confidence\n4. Calmness\n5. Composure\n6. Ease\n7. Assurance\n8. Boldness\n9. Fearlessness\n10. Tranquility\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrantcarthew%2Fpython-define","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrantcarthew%2Fpython-define","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrantcarthew%2Fpython-define/lists"}