{"id":8390,"date":"2019-01-20T14:46:18","date_gmt":"2019-01-20T14:46:18","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=8390"},"modified":"2019-03-09T03:43:29","modified_gmt":"2019-03-09T03:43:29","slug":"linux-today-pyvoc-a-command-line-dictionary-and-vocabulary-building-tool","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/20\/linux-today-pyvoc-a-command-line-dictionary-and-vocabulary-building-tool\/","title":{"rendered":"Linux Today &#8211; Pyvoc &#8211; A Command line Dictionary And Vocabulary Building Tool"},"content":{"rendered":"<p class=\"post-byline\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-thumb-large size-thumb-large wp-post-image tc-smart-load-skip tc-smart-loaded\" style=\"font-size: 1rem;\" src=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc-720x340.jpg\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc-720x340.jpg 720w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc-520x245.jpg 520w\" alt=\"pyvoc command line dictionary\" width=\"720\" height=\"340\" \/><\/p>\n<p>Howdy! I have a good news for non-native English speakers. Now, you can improve your English vocabulary and find the meaning of English words, right from your Terminal. Say hello to\u00a0<strong>Pyvoc<\/strong>, a cross-platform, open source, command line dictionary and vocabulary building tool written in\u00a0<strong>Python<\/strong>\u00a0programming language. Using this tool, you can brush up some English words meanings, test or improve your vocabulary skill or simply use it as a CLI dictionary on Unix-like operating systems.<\/p>\n<h4 class=\"fittexted_for_content_h4\">Installing Pyvoc<\/h4>\n<p>Since Pyvoc is written using Python language, you can install it using\u00a0<a href=\"https:\/\/www.ostechnix.com\/manage-python-packages-using-pip\/\" target=\"_blank\" rel=\"noopener\"><strong>Pip3<\/strong><\/a>\u00a0package manager.<\/p>\n<pre>$ pip3 install pyvoc<\/pre>\n<p>Once installed, run the following command to automatically create necessary configuration files in your $HOME directory.<\/p>\n<pre>$ pyvoc word<\/pre>\n<p>Sample output:<\/p>\n<pre>|Creating necessary config files\r\n\/getting api keys. please handle with care!\r\n|\r\n\r\nword \r\nNoun: single meaningful element of speech or writing\r\nexample: I don't like the word \u2018unofficial\u2019\r\n\r\nVerb: express something spoken or written\r\nexample: he words his request in a particularly ironic way\r\n\r\nInterjection: used to express agreement or affirmation\r\nexample: Word, that's a good record, man<\/pre>\n<p>Done! Let us go ahead and brush the English skills.<\/p>\n<h4 class=\"fittexted_for_content_h4\">Use Pyvoc as a command line Dictionary tool<\/h4>\n<p>Pyvoc fetches the word meaning from\u00a0<strong>Oxford Dictionary API<\/strong>.<\/p>\n<p>Let us say, you want to find the meaning of a word\u00a0<strong>\u2018digression\u2019<\/strong>. To do so, run:<\/p>\n<pre>$ pyvoc digression<\/pre>\n<div id=\"attachment_16294\" class=\"wp-caption aligncenter\"><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc1.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16294 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc1.png\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc1.png 744w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc1-300x178.png 300w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc1-520x308.png 520w\" alt=\"pyvoc1\" width=\"744\" height=\"441\" aria-describedby=\"caption-attachment-16294\" \/><\/a><\/p>\n<p id=\"caption-attachment-16294\" class=\"wp-caption-text\">Find a word meaning using Pyvoc<\/p>\n<\/div>\n<p>See? Pyvoc not only displays the meaning of word\u00a0<strong>\u2018digression\u2019<\/strong>, but also an example sentence which shows how to use that word in practical.<\/p>\n<p>Let us see an another example.<\/p>\n<pre><strong>$ pyvoc subterfuge<\/strong>\r\n|\r\n\r\nsubterfuge \r\nNoun: deceit used in order to achieve one's goal\r\nexample: he had to use subterfuge and bluff on many occasions<\/pre>\n<p>It also shows the word classes as well. As you already know,\u00a0<span class=\"ILfuVd\">English has four major\u00a0<b>word classes<\/b>:<\/span><\/p>\n<ol>\n<li><span class=\"ILfuVd\">Nouns,<\/span><\/li>\n<li><span class=\"ILfuVd\">Verbs,<\/span><\/li>\n<li><span class=\"ILfuVd\">Adjectives,<\/span><\/li>\n<li><span class=\"ILfuVd\">Adverbs.<\/span><\/li>\n<\/ol>\n<p>Take a look at the following example.<\/p>\n<pre>$ pyvoc welcome\r\n \/\r\n\r\nwelcome \r\nNoun:            instance or manner of greeting someone\r\nexample:         you will receive a warm welcome\r\n\r\nInterjection:    used to greet someone in polite or friendly way\r\nexample:         welcome to the Wildlife Park\r\n\r\nVerb:            greet someone arriving in polite or friendly way\r\nexample:         hotels should welcome guests in their own language\r\n\r\nAdjective:       gladly received\r\nexample:         I'm pleased to see you, lad\u2014you're welcome<\/pre>\n<p>As you see in the above output, the word \u2018welcome\u2019 can be used as a verb, noun, adjective and interjection. Pyvoc has given example for each class.<\/p>\n<p>If you misspell a word, it will inform you to check the spelling of the given word.<\/p>\n<pre><strong>$ pyvoc wlecome<\/strong>\r\n\\\r\nNo definition found. Please check the spelling!!<\/pre>\n<p>Useful, isn\u2019t it?<\/p>\n<h4 class=\"fittexted_for_content_h4\">Create vocabulary groups<\/h4>\n<p>A vocabulary group is nothing but a collection words added by the user. You can later revise or take quiz from these groups. 100 groups of 60 words are\u00a0<strong>reserved<\/strong>\u00a0for the user.<\/p>\n<p>To add a word (E.g\u00a0<strong>sporadic<\/strong>) to a group, just run:<\/p>\n<pre><strong>$ pyvoc sporadic -a<\/strong>\r\n-\r\n\r\nsporadic \r\nAdjective: occurring at irregular intervals or only in few places\r\nexample: sporadic fighting broke out\r\n\r\n\r\nwriting to vocabulary group...\r\nword added to <strong>group number 51<\/strong><\/pre>\n<p>As you can see, I didn\u2019t provide any group number and pyvoc displayed the meaning of given word and automatically added that word to group number\u00a0<strong>51<\/strong>. If you don\u2019t provide the group number, Pyvoc will\u00a0<strong>incrementally add words<\/strong>\u00a0to groups\u00a0<strong>51-100<\/strong>.<\/p>\n<p>Pyvoc also allows you to specify a group number if you want to. You can specify a group from 1-50 using\u00a0<strong>-g<\/strong>option. For example, I am going to add a word to Vocabulary group 20 using the following command.<\/p>\n<pre><strong>$ pyvoc discrete -a -g 20<\/strong>\r\n \/\r\n\r\ndiscrete \r\nAdjective:       individually separate and distinct\r\nexample:         speech sounds are produced as a continuous sound signal rather\r\n               than discrete units\r\n\r\ncreating group Number 20...\r\nwriting to vocabulary group...\r\nword added to group number 20<\/pre>\n<p>See? The above command displays the meaning of \u2018discrete\u2019 word and adds it to the vocabulary group 20. If the group doesn\u2019t exists, Pyvoc will create it and add the word.<\/p>\n<p>By default, Pyvoc includes three predefined vocabulary groups (101, 102, and 103). These custom groups has 800 words of each. All words in these groups are taken from\u00a0<strong>GRE<\/strong>\u00a0and\u00a0<strong>SAT<\/strong>\u00a0preparation websites.<\/p>\n<p>To view the user-generated groups, simply run:<\/p>\n<pre><strong>$ pyvoc word -l<\/strong>\r\n -\r\n\r\nword \r\nNoun:            single meaningful element of speech or writing\r\nexample:         I don't like the word \u2018unofficial\u2019\r\n\r\nVerb:            express something spoken or written\r\nexample:         he words his request in a particularly ironic way\r\n\r\nInterjection:    used to express agreement or affirmation\r\nexample:         Word, that's a good record, man\r\n\r\n\r\n<strong>USER GROUPS<\/strong>\r\n<strong>Group no.      No. of words<\/strong>\r\n<strong>20             1<\/strong>\r\n\r\nDEFAULT GROUP\r\nGroup no.      No. of words\r\n51             1<\/pre>\n<pre><\/pre>\n<p>As you see, I have created one group (20) including the default group (51).<\/p>\n<h4 class=\"fittexted_for_content_h4\">Test and improve English vocabulary<\/h4>\n<p>As I already said, you can use the Vocabulary groups to revise or take quiz from them.<\/p>\n<p>For instance, to revise the group no.\u00a0<strong>101<\/strong>, use\u00a0<strong>-r<\/strong>\u00a0option like below.<\/p>\n<pre>$ pyvoc 101 -r<\/pre>\n<p>You can now revise the meaning of all words in the Vocabulary group 101 in random order. Just hit ENTER to go through next questions. Once done, hit\u00a0<strong>CTRL+C<\/strong>\u00a0to exit.<\/p>\n<div id=\"attachment_16305\" class=\"wp-caption aligncenter\"><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc2-1.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16305 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc2-1.png\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc2-1.png 1366w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc2-1-300x159.png 300w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc2-1-768x408.png 768w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc2-1-1024x543.png 1024w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc2-1-520x276.png 520w\" alt=\"pyvoc2\" width=\"1366\" height=\"725\" aria-describedby=\"caption-attachment-16305\" \/><\/a><\/p>\n<p id=\"caption-attachment-16305\" class=\"wp-caption-text\">Revise Vocabulary group<\/p>\n<\/div>\n<p>Also, you take quiz from the existing groups to brush up your vocabulary. To do so, use\u00a0<strong>-q<\/strong>\u00a0option like below.<\/p>\n<pre>$ pyvoc 103 -q 50<\/pre>\n<p>This command allows you to take quiz of 50 questions from vocabulary group 103. Choose the correct answer from the list by entering the appropriate number. You will get 1 point for every correct answer. The more you score the more your vocabulary skill will be.<\/p>\n<div id=\"attachment_16306\" class=\"wp-caption aligncenter\"><a class=\"\" title=\"\" href=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc3.png\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16306 tc-smart-load-skip tc-smart-loaded\" src=\"http:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc3.png\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" srcset=\"https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc3.png 744w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc3-300x178.png 300w, https:\/\/www.ostechnix.com\/wp-content\/uploads\/2019\/01\/pyvoc3-520x308.png 520w\" alt=\"pyvoc3\" width=\"744\" height=\"441\" aria-describedby=\"caption-attachment-16306\" \/><\/a><\/p>\n<p id=\"caption-attachment-16306\" class=\"wp-caption-text\">Take quiz using Pyvoc<\/p>\n<\/div>\n<p>Pyvoc is in the early-development stage. I hope the developer will improve it and add more features in the days to come.<\/p>\n<p>As a non-native English speaker, I personally find it useful to test and learn new word meanings in my free time. If you\u2019re a heavy command line user and wanted to quickly check the meaning of a word, Pyvoc is the right tool. You can also test your English Vocabulary at your free time to memorize and improve your English language skill. Give it a try. You won\u2019t be disappointed.<\/p>\n<p>And, that\u2019s all for now. Hope this was useful. More good stuffs to come. Stay tuned!<\/p>\n<p>Cheers!<\/p>\n<p><strong>Resource:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/makkoncept\/pyvoc\" target=\"_blank\" rel=\"noopener\"><strong>Pyvoc GitHub Repository<\/strong><\/a><\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.linuxtoday.com\/developer\/pyvoc-a-command-line-dictionary-and-vocabulary-building-tool-190117063507.html\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Howdy! I have a good news for non-native English speakers. Now, you can improve your English vocabulary and find the meaning of English words, right from your Terminal. Say hello to\u00a0Pyvoc, a cross-platform, open source, command line dictionary and vocabulary building tool written in\u00a0Python\u00a0programming language. Using this tool, you can brush up some English words &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/20\/linux-today-pyvoc-a-command-line-dictionary-and-vocabulary-building-tool\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux Today &#8211; Pyvoc &#8211; A Command line Dictionary And Vocabulary Building Tool&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8390","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=8390"}],"version-history":[{"count":2,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8390\/revisions"}],"predecessor-version":[{"id":10893,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8390\/revisions\/10893"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=8390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=8390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=8390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}