{"id":17832405,"url":"https://github.com/ankurgel/dictionary-rb","last_synced_at":"2025-03-19T10:30:55.336Z","repository":{"id":13693677,"uuid":"16387501","full_name":"AnkurGel/dictionary-rb","owner":"AnkurGel","description":"Provides meanings, similar words and usage examples for a word from Urban Dictionary and Dictionary Reference with CLI support","archived":false,"fork":false,"pushed_at":"2015-12-12T21:16:02.000Z","size":27,"stargazers_count":10,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T06:11:27.163Z","etag":null,"topics":["cli","dictionary-reference","ruby","rubygem","urban-dictionary"],"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/AnkurGel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-30T19:03:22.000Z","updated_at":"2024-09-16T04:55:35.000Z","dependencies_parsed_at":"2022-07-30T15:49:01.210Z","dependency_job_id":null,"html_url":"https://github.com/AnkurGel/dictionary-rb","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnkurGel%2Fdictionary-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnkurGel%2Fdictionary-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnkurGel%2Fdictionary-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnkurGel%2Fdictionary-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnkurGel","download_url":"https://codeload.github.com/AnkurGel/dictionary-rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244407772,"owners_count":20447846,"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":["cli","dictionary-reference","ruby","rubygem","urban-dictionary"],"created_at":"2024-10-27T19:56:47.472Z","updated_at":"2025-03-19T10:30:54.996Z","avatar_url":"https://github.com/AnkurGel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"#dictionary-rb\n\nProvides meanings, similar words, usage examples from [Urban Dictionary](http://urbandictionary.com) and [Dictionary Reference](http://dictionary.reference.com/) with **CLI** support.\n\n##Installation\n\n`gem install dictionary-rb`\n\n\n##Documentation\nDetailed documentation is [available here](http://rubydoc.info/gems/dictionary-rb).\n\n##Usage\n--------\n\n```ruby\nrequire 'dictionary-rb'\ninclude DictionaryRB\nword = Word.new('pudding')\nword.meaning\n#=\u003e \"a thick, soft dessert, typically containing flour or some other thickener, milk, eggs, a flavoring, and sweetener\"\n\n#I shall haz more meanings\nword.meanings\n#=\u003e [\"a thick, soft dessert, typically containing flour or some other thickener, milk, eggs, a flavoring, and sweetener\", \"a similar dish unsweetened and served with or as a main dish\", \"British\",.. ]\n\n\n#Find urban dictionary meaning instead:\nword.urban_meaning\n#=\u003e \"a desert given to kids who eat their meat\"\n\n\n#Do more with them\nword.urban.examples\n#=\u003e [\"eat your meat! how can you have any pudding if you dont eat your meat?!\", \"  Oh, no! Get the pudding,here comes a gang of Leprechauns and children.\", \"Adrian says, \\\"I like pudding.\\\"\", \"My cousin is a whore...I think I'll name her Pudding.\"..]\n\nword.dictionary.examples\n#=\u003e [\"Turn into an earthen pudding-dish, cover, and cook slowly three and one-half hours.\", \"Turn in a buttered pudding-dish, and bake thirty-five minutes in a slow oven.\", \"The proof is in the pudding and if people want to make themselves feel better  for bottle feeding they can go ahead.\",..]\n\nword.urban.synonyms\n#=\u003e[ \"bill cosby\", \"pie\", \"fat\", \"pudd\"]\n```\n\n##CLI\n------\n* To list all tasks   \n  `dictionary help`\n\n* To list help for a task   \n  `dictionary help task_name`   \n  **example** : `dictionary help urban`   \n\n### Using `meaning`\n  \n```bash\n\u003e dictionary meaning boast\nboast - to speak with exaggeration and excessive pride, especially about oneself\n```\n\n####Available options and flags:\n\n```bash\n\u003e dictionary help meaning\nUsage:\n  dictionary meaning WORD\n\nOptions:\n  [--words=one two three]  # Specify multiple WORDS in succession\n  [--file]                 # Pass file(s) as argument(s) instead.\n  [--example]              # Generate an example too.\n  [--similar]              # Generate a synonym too.\n  [--urban]                # Give meaning from Urban Dictionary instead.\n  [--write=FILE]           # Also write results to specified FILE\n\ngives dictionary meaning of the WORD\n```\n\n\n```bash\n\u003e dictionary meaning --words boast sly --urban --example\nboast - To gloat or brag about something - He was boasting about his fly girlfriend.\nsly - To do something cunningly, preferably without any one seeing, apart from your best mate to prove you did it - \"Hey Jo, see that girl there? Well we danced and she i\" Slllly!\"ying my child!!!\"\n```\n\n### Using `similar`\n\n```bash\n\u003e dictionary similar answer\nanswer is similar to - check\n```\n\n####Available options and flags\n\n```bash\n\u003e dictionary help similar\nUsage:\n  dictionary similar WORD\n\nOptions:\n  [--words=one two three]  # Specify multiple WORDS in succession\n  [--file]                 # Pass file(s) as arugment(s) instead.\n  [--urban]                # Give similar word from Urban Dictionary\n  [--count=N]              # Gives N similar words\n  [--write=FILE]           # Write results to specified FILE\n\ngives syonyms of word(s)\n```\n\n```bash\n\u003e dictionary similar --words boast --urban --count 2\nboast is similar to - annoying, humble\n```\n\n**Similar tasks are present for \"urban\" and \"examples\", use `help` to discover**\n\n\n##Contribution\n\n* Fork the [repository](https://github.com/AnkurGel/dictionary-rb)\n* Have a look at the [API Documentation](http://rubydoc.info/gems/dictionary-rb). It is pretty well documented with explanations of all methods and modules.\n* Do your changes in your remote branch\n* Create a pull request.\n* Earn a beer! :)\n\n\n##Copyright\n\nCopyright (c) 2014 Ankur Goel.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankurgel%2Fdictionary-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankurgel%2Fdictionary-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankurgel%2Fdictionary-rb/lists"}