{"id":1741,"date":"2019-09-29T09:26:27","date_gmt":"2019-09-29T03:56:27","guid":{"rendered":"https:\/\/www.rangakrish.com\/?p=1741"},"modified":"2019-09-29T11:37:41","modified_gmt":"2019-09-29T06:07:41","slug":"generating-verb-conjugations","status":"publish","type":"post","link":"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/29\/generating-verb-conjugations\/","title":{"rendered":"Generating Verb Conjugations"},"content":{"rendered":"<p>We have been taught in school that English language has different <em><strong>\u201ctense\u201d<\/strong><\/em> forms. To help you quickly recollect, I am listing them in the table below (the verb <em><strong>&#8216;sleep&#8217;<\/strong><\/em> is used as example):<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\">\n<h4><span style=\"color: #0000ff;\"><strong>No.<\/strong><\/span><\/h4>\n<\/td>\n<td valign=\"top\">\n<h4><span style=\"color: #0000ff;\"><strong>Tense Form<\/strong><\/span><\/h4>\n<\/td>\n<td valign=\"top\">\n<h4><span style=\"color: #0000ff;\"><strong>Example Sentence (3<sup>rd<\/sup> Person Singular Pronoun)<\/strong><\/span><\/h4>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">1<\/td>\n<td valign=\"top\">Simple Present<\/td>\n<td valign=\"top\">She sleeps<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">2<\/td>\n<td valign=\"top\">Simple Past<\/td>\n<td valign=\"top\">She slept<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">3<\/td>\n<td valign=\"top\">Simple Future<\/td>\n<td valign=\"top\">She will sleep<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">4<\/td>\n<td valign=\"top\">Present Continuous<\/td>\n<td valign=\"top\">She is sleeping<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">5<\/td>\n<td valign=\"top\">Past Continuous<\/td>\n<td valign=\"top\">She was sleeping<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">6<\/td>\n<td valign=\"top\">Future Continuous<\/td>\n<td valign=\"top\">She will be sleeping<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">7<\/td>\n<td valign=\"top\">Present Perfect<\/td>\n<td valign=\"top\">She has slept<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">8<\/td>\n<td valign=\"top\">Past Perfect<\/td>\n<td valign=\"top\">She had slept<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">9<\/td>\n<td valign=\"top\">Future Perfect<\/td>\n<td valign=\"top\">She will have slept<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">10<\/td>\n<td valign=\"top\">Present Perfect Continuous<\/td>\n<td valign=\"top\">She has been sleeping<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">11<span class=\"Apple-converted-space\">\u00a0<\/span><\/td>\n<td valign=\"top\">Past Perfect Continuous<\/td>\n<td valign=\"top\">She had been sleeping<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">12<span class=\"Apple-converted-space\">\u00a0<\/span><\/td>\n<td valign=\"top\">Future Perfect Continuous<\/td>\n<td valign=\"top\">She will have been sleeping<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">13<\/td>\n<td valign=\"top\">Conditional Simple<\/td>\n<td valign=\"top\">She would sleep<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">14<\/td>\n<td valign=\"top\">Conditional Perfect<\/td>\n<td valign=\"top\">She would have slept<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">15<\/td>\n<td valign=\"top\">Conditional Continuous<\/td>\n<td valign=\"top\">She would be sleeping<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">16<\/td>\n<td valign=\"top\">Conditional Perfect Continuous<\/td>\n<td valign=\"top\">She would have been sleeping<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The above table gives examples for the verb <em><strong>\u201csleep\u201d<\/strong><\/em> as applied to <em><strong>\u201c3rd Person Singular\u201d<\/strong><\/em> pronoun.\u00a0When we <em><strong>\u201cconjugate\u201d<\/strong><\/em> a verb, we change its form so that it matches the required <em><strong>Tense<\/strong><\/em>, <em><strong>Person<\/strong><\/em> and <em><strong>Number<\/strong><\/em>. Take the verb <em><strong>\u201csleep\u201d<\/strong><\/em> used in the table above.<\/p>\n<blockquote><p><span style=\"text-decoration: underline; color: #0000ff;\"><strong>Case 1:<span class=\"Apple-converted-space\">\u00a0<\/span><\/strong><\/span><\/p>\n<p>Tense = Present Continuous<\/p>\n<p>Person = First Person<\/p>\n<p>Number = Singular<\/p>\n<p>The conjugation of <em><strong>\u201csleep\u201d<\/strong><\/em> gives <em><strong>\u201cam sleeping\u201d<\/strong><\/em>.<\/p>\n<p><span style=\"text-decoration: underline; color: #0000ff;\"><strong>Case 2:<\/strong><\/span><\/p>\n<p>Tense = Present Continuous<\/p>\n<p>Person = First Person<\/p>\n<p>Number = Plural<\/p>\n<p>The conjugation of <em><strong>\u201csleep\u201d<\/strong><\/em> gives <em><strong>\u201care sleeping\u201d<\/strong><\/em>.<\/p>\n<p><span style=\"text-decoration: underline; color: #0000ff;\"><strong>Case 3:<\/strong><\/span><\/p>\n<p>Tense = Present Continuous<\/p>\n<p>Person = Second Person<\/p>\n<p>Number = Singular\/Plural<\/p>\n<p>The conjugation of <em><strong>\u201csleep\u201d<\/strong><\/em> gives <em><strong>\u201care sleeping\u201d<\/strong><\/em>.<\/p>\n<p><span style=\"text-decoration: underline; color: #0000ff;\"><strong>Case 4:<\/strong><\/span><\/p>\n<p>Tense = Present Continuous<\/p>\n<p>Person = Third Person<\/p>\n<p>Number = Singular<\/p>\n<p>The conjugation of <em><strong>\u201csleep\u201d<\/strong><\/em> gives <em><strong>\u201cis sleeping\u201d<\/strong><\/em>.<\/p>\n<p><span style=\"text-decoration: underline; color: #0000ff;\"><strong>Case 5:<\/strong><\/span><\/p>\n<p>Tense = Present Continuous<\/p>\n<p>Person = Third Person<\/p>\n<p>Number = Plural<\/p>\n<p>The conjugation of <em><strong>\u201csleep\u201d<\/strong><\/em> gives <em><strong>\u201care sleeping\u201d<\/strong><\/em>.<\/p><\/blockquote>\n<p>I hope you get the idea. For more details, go through a good book on English grammar.<\/p>\n<p>One of the interesting features I have built into my <em><strong>\u201ciLexicon\u201d<\/strong><\/em> system is the automatic generation of verb forms depending on the <em><strong>&lt;Verb, Tense, Person, Number &gt;<\/strong><\/em> quadruple. In today\u2019s article, I would like to show examples of this functionality.<\/p>\n<p>Have a look at the following session:<\/p>\n<figure id=\"attachment_1744\" aria-describedby=\"caption-attachment-1744\" style=\"width: 551px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example.jpg?ssl=1\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" data-attachment-id=\"1744\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/29\/generating-verb-conjugations\/example\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example.jpg\" data-orig-size=\"551,117\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Admin&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1569581177&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Conjugation Example\" data-image-description=\"&lt;p&gt;Conjugation Example&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Conjugation Example&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example.jpg\" class=\"size-full wp-image-1744\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example.jpg?resize=551%2C117&#038;ssl=1\" alt=\"Conjugation Example\" width=\"551\" height=\"117\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example.jpg?w=551&amp;ssl=1 551w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example.jpg?resize=300%2C64&amp;ssl=1 300w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><\/a><figcaption id=\"caption-attachment-1744\" class=\"wp-caption-text\"><strong>Conjugation Example<\/strong><\/figcaption><\/figure>\n<p>Here <strong>\u201cp1\u201d<\/strong>, <strong>\u201cp2\u201d<\/strong> and<strong> \u201cp3\u201d<\/strong> stand for <strong>1<sup>st<\/sup> Person, 2<sup>nd<\/sup> Person<\/strong> and <strong>3<sup>rd<\/sup> Person<\/strong> respectively. The term\u00a0<strong>\u201cc1\u201d<\/strong> denotes\u00a0<strong>\u201csingular\u201d<\/strong>\u00a0number. The last argument of the predicate will be bound to the conjugated (generated) form of the verb.<\/p>\n<p>It will be convenient if we can generate the conjugated forms of a verb for all the 16 tenses listed in the earlier table. Here is the code fragment (written in <em><strong>Sicstus Prolog<\/strong><\/em>) that does this:<\/p>\n<figure id=\"attachment_1746\" aria-describedby=\"caption-attachment-1746\" style=\"width: 656px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code-1.jpg?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"1746\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/29\/generating-verb-conjugations\/code-8\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code-1.jpg\" data-orig-size=\"656,483\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Admin&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1569580302&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Prolog Code Fragment\" data-image-description=\"&lt;p&gt;Prolog Code Fragment&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Prolog Code Fragment&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code-1.jpg\" class=\"size-full wp-image-1746\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code-1.jpg?resize=656%2C483&#038;ssl=1\" alt=\"Prolog Code Fragment\" width=\"656\" height=\"483\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code-1.jpg?w=656&amp;ssl=1 656w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code-1.jpg?resize=300%2C221&amp;ssl=1 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/a><figcaption id=\"caption-attachment-1746\" class=\"wp-caption-text\"><strong>Prolog Code Fragment<\/strong><\/figcaption><\/figure>\n<p>Let us apply this to:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\">Verb = sleep<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Person = 3<sup>rd<\/sup> Person<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Number = Singular<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Tense = All the 16 tenses<\/span><\/p><\/blockquote>\n<p>Here is what we get:<\/p>\n<figure id=\"attachment_1747\" aria-describedby=\"caption-attachment-1747\" style=\"width: 525px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example1.jpg?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"1747\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/29\/generating-verb-conjugations\/example1-16\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example1.jpg\" data-orig-size=\"525,234\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Admin&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1569579951&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Full Conjugation &amp;#8211; Example1\" data-image-description=\"&lt;p&gt;Full Conjugation &amp;#8211; Example1&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Full Conjugation &amp;#8211; Example1&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example1.jpg\" class=\"size-full wp-image-1747\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example1.jpg?resize=525%2C234&#038;ssl=1\" alt=\"Full Conjugation - Example1\" width=\"525\" height=\"234\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example1.jpg?w=525&amp;ssl=1 525w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example1.jpg?resize=300%2C134&amp;ssl=1 300w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/a><figcaption id=\"caption-attachment-1747\" class=\"wp-caption-text\"><strong>Full Conjugation &#8211; Example1<\/strong><\/figcaption><\/figure>\n<p>For our next example, let us consider:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\">Verb = eat<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Person = 3<sup>rd<\/sup> Person<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Number = Plural<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Tense = All the 16 tenses<\/span><\/p><\/blockquote>\n<p>Here is the corresponding output:<\/p>\n<figure id=\"attachment_1748\" aria-describedby=\"caption-attachment-1748\" style=\"width: 534px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example2.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1748\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/29\/generating-verb-conjugations\/example2-12\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example2.jpg\" data-orig-size=\"534,235\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Admin&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1569580103&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Full Conjugation &amp;#8211; Example2\" data-image-description=\"&lt;p&gt;Full Conjugation &amp;#8211; Example2&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Full Conjugation &amp;#8211; Example2&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example2.jpg\" class=\"size-full wp-image-1748\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example2.jpg?resize=534%2C235&#038;ssl=1\" alt=\"Full Conjugation - Example2\" width=\"534\" height=\"235\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example2.jpg?w=534&amp;ssl=1 534w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example2.jpg?resize=300%2C132&amp;ssl=1 300w\" sizes=\"(max-width: 534px) 100vw, 534px\" \/><\/a><figcaption id=\"caption-attachment-1748\" class=\"wp-caption-text\"><strong>Full Conjugation &#8211; Example2<\/strong><\/figcaption><\/figure>\n<p>For the third and final example,<\/p>\n<blockquote><p><span style=\"color: #0000ff;\">Verb = sing<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Person = 1st Person<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Number = Singular<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Tense = All the 16 tenses<\/span><\/p><\/blockquote>\n<p>And here is the output generated by the system:<\/p>\n<figure id=\"attachment_1749\" aria-describedby=\"caption-attachment-1749\" style=\"width: 505px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example3.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1749\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/29\/generating-verb-conjugations\/example3-11\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example3.jpg\" data-orig-size=\"505,233\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Admin&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1569580577&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Full Conjugation &amp;#8211; Example3\" data-image-description=\"&lt;p&gt;Full Conjugation &amp;#8211; Example3&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Full Conjugation &amp;#8211; Example3&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example3.jpg\" class=\"size-full wp-image-1749\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example3.jpg?resize=505%2C233&#038;ssl=1\" alt=\"Full Conjugation - Example3\" width=\"505\" height=\"233\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example3.jpg?w=505&amp;ssl=1 505w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example3.jpg?resize=300%2C138&amp;ssl=1 300w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/a><figcaption id=\"caption-attachment-1749\" class=\"wp-caption-text\"><strong>Full Conjugation &#8211; Example3<\/strong><\/figcaption><\/figure>\n<p>As you can see, <em><strong>\u201ciLexicon\u201d<\/strong><\/em> is capable of conjugating verbs correctly. This is really important when we are interested in generating complete sentences, and that is one of the larger goals of this project.<\/p>\n<p>Watch this space for many more interesting aspects of <em><strong>\u201ciLexicon\u201d<\/strong><\/em>. And have a nice weekend!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have been taught in school that English language has different \u201ctense\u201d forms. To help you quickly recollect, I am listing them in the table below (the verb &#8216;sleep&#8217; is used as example): No. Tense Form Example Sentence (3rd Person Singular Pronoun) 1 Simple Present She sleeps 2 Simple Past She slept 3 Simple Future [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[107,17,147],"tags":[130,151,215],"class_list":["post-1741","post","type-post","status-publish","format-standard","hentry","category-natural-language-processing","category-programming","category-prolog","tag-ilexicon","tag-sicstus-prolog","tag-verb-conjugation"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9OLnF-s5","jetpack-related-posts":[{"id":1757,"url":"https:\/\/www.rangakrish.com\/index.php\/2019\/10\/13\/conjugating-phrasal-verbs\/","url_meta":{"origin":1741,"position":0},"title":"Conjugating Phrasal Verbs","author":"admin","date":"October 13, 2019","format":false,"excerpt":"In the last article, I showed how to generate verb conjugations in the \"iLexicon\" system. Today, let us see how this idea can be extended to English \"phrasal verbs\". According to Wikipedia: \"a phrasal verb is a phrase such as turn down or ran into which combines two or three\u2026","rel":"","context":"In &quot;Natural Language Processing&quot;","block_context":{"text":"Natural Language Processing","link":"https:\/\/www.rangakrish.com\/index.php\/category\/natural-language-processing\/"},"img":{"alt_text":"Conjugation of \"Turn on\"","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/10\/Example3.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1881,"url":"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/02\/verb-conjugations-in-passive-voice\/","url_meta":{"origin":1741,"position":1},"title":"Verb Conjugations in Passive Voice","author":"admin","date":"February 2, 2020","format":false,"excerpt":"In my earlier article, I showed how the iLexicon system can generate verb conjugations based on <Verb, Tense, Person, Number> quadruple. For the 16 tense forms discussed in that article, the verb conjugations were generated in \u201cactive\u201d voice.\u00a0 We all know that \u201ctransitive\" verbs can be expressed in both \u201cactive\u201d\u2026","rel":"","context":"In &quot;Natural Language Processing&quot;","block_context":{"text":"Natural Language Processing","link":"https:\/\/www.rangakrish.com\/index.php\/category\/natural-language-processing\/"},"img":{"alt_text":"Passive Voice Conjugations - \"Drink\"","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive-voice3.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2415,"url":"https:\/\/www.rangakrish.com\/index.php\/2021\/05\/23\/the-structure-of-wh-questions\/","url_meta":{"origin":1741,"position":2},"title":"The Structure of WH-Questions","author":"admin","date":"May 23, 2021","format":false,"excerpt":"WH-Questions are questions that begin with the following words: - Who (\u201cWho came here yesterday?\u201d) - What (\u201cWhat is the goal of this project?\u201d) - When (\u201cWhen can I visit my parents?\u201d) - Where (\u201cWhere did he go?\u201d) - Why (\u201cWhy is everyone running away?\u201d) - Which (\u201cWhich is the\u2026","rel":"","context":"In &quot;Natural Language Processing&quot;","block_context":{"text":"Natural Language Processing","link":"https:\/\/www.rangakrish.com\/index.php\/category\/natural-language-processing\/"},"img":{"alt_text":"WH-Questions Structure","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2021\/05\/WH-structure-300x238.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1727,"url":"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/15\/exploring-word-patterns\/","url_meta":{"origin":1741,"position":3},"title":"Exploring Word Patterns","author":"admin","date":"September 15, 2019","format":false,"excerpt":"Working with word patterns can be an exciting (and challenging) creative activity. Such patterns come into picture while playing word games, solving word puzzles or even writing poetry. It is precisely to facilitate such tasks that I am building my \"iLexicon\" system.\u00a0 One popular word game goes like this: The\u2026","rel":"","context":"In &quot;Natural Language Processing&quot;","block_context":{"text":"Natural Language Processing","link":"https:\/\/www.rangakrish.com\/index.php\/category\/natural-language-processing\/"},"img":{"alt_text":"Prolog Predicates for Word Pair Generation","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/Code.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":541,"url":"https:\/\/www.rangakrish.com\/index.php\/2017\/06\/04\/definite-clause-grammars-in-lisp-part-2\/","url_meta":{"origin":1741,"position":4},"title":"Definite Clause Grammars in Lisp &#8211; Part 2","author":"admin","date":"June 4, 2017","format":false,"excerpt":"In the last post, I showed how we can implement DCGs in LispWorks using the KnowledgeWorks package. The grammar discussed in that post did not take into account subject\/predicate number agreement. This is one of the basic constraints in English grammar. Today I will show how easy it is to\u2026","rel":"","context":"In &quot;LISP&quot;","block_context":{"text":"LISP","link":"https:\/\/www.rangakrish.com\/index.php\/category\/lisp\/"},"img":{"alt_text":"Prolog Grammar","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/06\/Prolog-Grammar.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":534,"url":"https:\/\/www.rangakrish.com\/index.php\/2017\/05\/22\/definite-clause-grammars-dcg-in-lisp\/","url_meta":{"origin":1741,"position":5},"title":"Definite Clause Grammars (DCG) in Lisp","author":"admin","date":"May 22, 2017","format":false,"excerpt":"Definite Clause Grammars (DCG) are an elegant formalism for specifying context free grammars, and part of their popularity is due to their support in the Prolog language. Most books on Natural Language processing usually include a brief coverage of DCGs, even though Natural languages are not context-free. Because of the\u2026","rel":"","context":"In &quot;LISP&quot;","block_context":{"text":"LISP","link":"https:\/\/www.rangakrish.com\/index.php\/category\/lisp\/"},"img":{"alt_text":"DCG Grammar","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/05\/DCG-Grammar.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/05\/DCG-Grammar.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/05\/DCG-Grammar.png?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/1741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/comments?post=1741"}],"version-history":[{"count":0,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/1741\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/media?parent=1741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/categories?post=1741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/tags?post=1741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}