{"id":1889,"date":"2020-02-16T10:24:09","date_gmt":"2020-02-16T04:54:09","guid":{"rendered":"https:\/\/www.rangakrish.com\/?p=1889"},"modified":"2020-02-16T10:28:44","modified_gmt":"2020-02-16T04:58:44","slug":"automatically-converting-active-voice-to-passive-voice-and-vice-versa","status":"publish","type":"post","link":"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/16\/automatically-converting-active-voice-to-passive-voice-and-vice-versa\/","title":{"rendered":"Automatically Converting Active Voice to Passive Voice and Vice Versa"},"content":{"rendered":"<p>The <em><strong>iLexicon<\/strong><\/em> system can handle <em><strong>active\/passive<\/strong><\/em> voice conversion of fairly complex English sentences. I gave examples of the underlying <em><strong>verb conjugation<\/strong><\/em> mechanism in this <a href=\"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/29\/generating-verb-conjugations\/\" target=\"_blank\" rel=\"noopener\"><em><strong>article<\/strong><\/em><\/a>\u00a0and <a href=\"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/02\/verb-conjugations-in-passive-voice\/\" target=\"_blank\" rel=\"noopener\"><em><strong>this one<\/strong><\/em><\/a>. Today, I am going to give examples of the conversion of complete sentences.<\/p>\n<p>Here is an example of active to passive voice conversion:<\/p>\n<figure id=\"attachment_1890\" aria-describedby=\"caption-attachment-1890\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive.jpg?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"1890\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/16\/automatically-converting-active-voice-to-passive-voice-and-vice-versa\/active2passive\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive.jpg\" data-orig-size=\"310,63\" 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;1581754207&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=\"Active To Passive Voice\" data-image-description=\"&lt;p&gt;Active To Passive Voice&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Active To Passive Voice&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive.jpg\" class=\"size-full wp-image-1890\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive.jpg?resize=310%2C63&#038;ssl=1\" alt=\"Active To Passive Voice\" width=\"310\" height=\"63\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive.jpg?w=310&amp;ssl=1 310w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive.jpg?resize=300%2C61&amp;ssl=1 300w\" sizes=\"(max-width: 310px) 100vw, 310px\" \/><\/a><figcaption id=\"caption-attachment-1890\" class=\"wp-caption-text\"><strong>Active To Passive Voice<\/strong><\/figcaption><\/figure>\n<p>The above is a snapshot of the interactive session in my <a href=\"https:\/\/sicstus.sics.se\" target=\"_blank\" rel=\"noopener\"><em><strong>Sicstus Prolog<\/strong><\/em><\/a>\u00a0IDE. You can see that the sentence <em><strong>&#8220;<\/strong><strong>he drank milk&#8221;<\/strong><\/em> has been correctly converted to <em><strong>&#8220;<\/strong><strong>milk was drunk by him&#8221;<\/strong><\/em>.<\/p>\n<p>Here are some more examples of active to passive voice conversion:<\/p>\n<figure id=\"attachment_1891\" aria-describedby=\"caption-attachment-1891\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive2.jpg?ssl=1\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" data-attachment-id=\"1891\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/16\/automatically-converting-active-voice-to-passive-voice-and-vice-versa\/active2passive2\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive2.jpg\" data-orig-size=\"700,231\" 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;1581801228&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=\"Some More Examples\" data-image-description=\"&lt;p&gt;Some More Examples&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Some More Examples&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive2.jpg\" class=\"wp-image-1891\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive2.jpg?resize=650%2C215&#038;ssl=1\" alt=\"Some More Examples\" width=\"650\" height=\"215\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive2.jpg?w=700&amp;ssl=1 700w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/active2passive2.jpg?resize=300%2C99&amp;ssl=1 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption id=\"caption-attachment-1891\" class=\"wp-caption-text\"><strong>Some More Examples<\/strong><\/figcaption><\/figure>\n<p>The last example is a special case that uses the preposition &#8220;<em><strong>to&#8221;<\/strong><\/em> instead of &#8220;<em><strong>by&#8221;<\/strong><\/em> in the passive voice.<\/p>\n<p>What about passive voice to active voice? The following is based on the earlier example:<\/p>\n<figure id=\"attachment_1892\" aria-describedby=\"caption-attachment-1892\" style=\"width: 372px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active.jpg?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"1892\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/16\/automatically-converting-active-voice-to-passive-voice-and-vice-versa\/passive2active\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active.jpg\" data-orig-size=\"372,70\" 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;1581754266&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=\"Passive To Active Voice\" data-image-description=\"&lt;p&gt;Passive To Active Voice&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Passive To Active Voice&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active.jpg\" class=\"size-full wp-image-1892\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active.jpg?resize=372%2C70&#038;ssl=1\" alt=\"Passive To Active Voice\" width=\"372\" height=\"70\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active.jpg?w=372&amp;ssl=1 372w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active.jpg?resize=300%2C56&amp;ssl=1 300w\" sizes=\"(max-width: 372px) 100vw, 372px\" \/><\/a><figcaption id=\"caption-attachment-1892\" class=\"wp-caption-text\"><strong>Passive To Active Voice<\/strong><\/figcaption><\/figure>\n<p>It works as expected. Here are some more conversions:<\/p>\n<figure id=\"attachment_1893\" aria-describedby=\"caption-attachment-1893\" style=\"width: 639px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active2.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1893\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/16\/automatically-converting-active-voice-to-passive-voice-and-vice-versa\/passive2active2\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active2.jpg\" data-orig-size=\"639,204\" 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;1581668396&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=\"More Examples &amp;#8211; Passive To Active\" data-image-description=\"&lt;p&gt;More Examples &amp;#8211; Passive To Active&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;More Examples &amp;#8211; Passive To Active&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active2.jpg\" class=\"size-full wp-image-1893\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active2.jpg?resize=639%2C204&#038;ssl=1\" alt=\"More Examples - Passive To Active\" width=\"639\" height=\"204\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active2.jpg?w=639&amp;ssl=1 639w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/passive2active2.jpg?resize=300%2C96&amp;ssl=1 300w\" sizes=\"(max-width: 639px) 100vw, 639px\" \/><\/a><figcaption id=\"caption-attachment-1893\" class=\"wp-caption-text\"><strong>More Examples &#8211; Passive To Active<\/strong><\/figcaption><\/figure>\n<p>Notice how the pronouns in the first example are suitably modified while changing the voice. The last example is a special case where the <em><strong>subject<\/strong><\/em> is missing. The word &#8220;<em><strong>someone&#8221;<\/strong><\/em> is introduced in this case when converting to active voice.<\/p>\n<p>Instead of converting from one voice to the other, we can give an <em><strong>active voice<\/strong><\/em> sentence and a <em><strong>passive voice<\/strong><\/em> sentence and check if they agree.<\/p>\n<figure id=\"attachment_1895\" aria-describedby=\"caption-attachment-1895\" style=\"width: 655px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1895\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/16\/automatically-converting-active-voice-to-passive-voice-and-vice-versa\/validation\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation.jpg\" data-orig-size=\"655,138\" 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;1581757217&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=\"Validating Active\/Passive Sentence Pairs\" data-image-description=\"&lt;p&gt;Validating Active\/Passive Sentence Pairs&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Validating Active\/Passive Sentence Pairs&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation.jpg\" class=\"size-full wp-image-1895\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation.jpg?resize=655%2C138&#038;ssl=1\" alt=\"Validating Active\/Passive Sentence Pairs\" width=\"655\" height=\"138\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation.jpg?w=655&amp;ssl=1 655w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation.jpg?resize=300%2C63&amp;ssl=1 300w\" sizes=\"(max-width: 655px) 100vw, 655px\" \/><\/a><figcaption id=\"caption-attachment-1895\" class=\"wp-caption-text\"><strong>Validating Active\/Passive Sentence Pairs<\/strong><\/figcaption><\/figure>\n<p>Note that the system flags the second example as incorrect. The correct conversion of the active voice sentence &#8220;<em><strong>he drank the sweet milk<\/strong><\/em>&#8221; is &#8220;<em><strong>the sweet milk was drunk by him<\/strong><\/em>&#8220;.<\/p>\n<p>Here are more examples of this:<\/p>\n<figure id=\"attachment_1896\" aria-describedby=\"caption-attachment-1896\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation2.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1896\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/16\/automatically-converting-active-voice-to-passive-voice-and-vice-versa\/validation2\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation2.jpg\" data-orig-size=\"736,347\" 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;1581757384&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=\"More Validation Examples\" data-image-description=\"&lt;p&gt;More Validation Examples&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;More Validation Examples&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation2.jpg\" class=\"wp-image-1896\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation2.jpg?resize=650%2C306&#038;ssl=1\" alt=\"More Validation Examples\" width=\"650\" height=\"306\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation2.jpg?w=736&amp;ssl=1 736w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/validation2.jpg?resize=300%2C141&amp;ssl=1 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption id=\"caption-attachment-1896\" class=\"wp-caption-text\"><strong>More Validation Examples<\/strong><\/figcaption><\/figure>\n<p>As you would have guessed, the first example shows incorrect conversion. The correct conversion is &#8220;<em><strong>the story book is being read by peter<\/strong><\/em>&#8220;.<\/p>\n<p><em><strong>iLexicon&#8217;s<\/strong> <\/em>conversion engine first parses the given sentence to extract the <em><strong>Subject<\/strong><\/em>, <em><strong>Predicate<\/strong><\/em> and <em><strong>Object<\/strong><\/em>. Then it applies verb conjugation and active\/passive conversion rules, and finally emits the transformed structure. Below is a snapshot of the core logic (Prolog):<\/p>\n<figure id=\"attachment_1898\" aria-describedby=\"caption-attachment-1898\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/Code.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1898\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/16\/automatically-converting-active-voice-to-passive-voice-and-vice-versa\/code-11\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/Code.jpg\" data-orig-size=\"788,550\" 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;1581757795&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=\"The Core Conversion Logic\" data-image-description=\"&lt;p&gt;The Core Conversion Logic&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;The Core Conversion Logic&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/Code.jpg\" class=\"wp-image-1898\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/Code.jpg?resize=650%2C454&#038;ssl=1\" alt=\"The Core Conversion Logic\" width=\"650\" height=\"454\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/Code.jpg?w=788&amp;ssl=1 788w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/Code.jpg?resize=300%2C209&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2020\/02\/Code.jpg?resize=768%2C536&amp;ssl=1 768w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption id=\"caption-attachment-1898\" class=\"wp-caption-text\"><strong>The Core Conversion Logic<\/strong><\/figcaption><\/figure>\n<p>It was challenging to work on this part but I thoroughly enjoyed it!<\/p>\n<p>Have a great weekend!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The iLexicon system can handle active\/passive voice conversion of fairly complex English sentences. I gave examples of the underlying verb conjugation mechanism in this article\u00a0and this one. Today, I am going to give examples of the conversion of complete sentences. Here is an example of active to passive voice conversion: The above is a snapshot [&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_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},"jetpack_post_was_ever_published":false},"categories":[107,17,147],"tags":[228,130,229,148],"class_list":["post-1889","post","type-post","status-publish","format-standard","hentry","category-natural-language-processing","category-programming","category-prolog","tag-active-voice","tag-ilexicon","tag-passive-voice","tag-prolog"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9OLnF-ut","jetpack-related-posts":[{"id":1881,"url":"https:\/\/www.rangakrish.com\/index.php\/2020\/02\/02\/verb-conjugations-in-passive-voice\/","url_meta":{"origin":1889,"position":0},"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":2467,"url":"https:\/\/www.rangakrish.com\/index.php\/2021\/07\/04\/identifying-sentence-types-automatically\/","url_meta":{"origin":1889,"position":1},"title":"Identifying Sentence Types Automatically","author":"admin","date":"July 4, 2021","format":false,"excerpt":"Sentences in English can be classified into the following common types: - Simple sentence (\"I am drinking coffee\") - Compound sentence (\"He came home with his school friend and they had an enjoyable evening\") - Complex sentence (\"Whenever my dog barks, I give him some biscuit\") - Imperative sentence (\"Please\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":"Top-level Predicates","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2021\/07\/code-300x233.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2366,"url":"https:\/\/www.rangakrish.com\/index.php\/2021\/03\/28\/implementing-ilexicon-using-litedb\/","url_meta":{"origin":1889,"position":2},"title":"Implementing iLexicon using LiteDB","author":"admin","date":"March 28, 2021","format":false,"excerpt":"iLexicon is an \"intelligent\" dictionary that can be used to build Natural Language applications. I have two implementations, one in Lisp and another in Prolog. Both implementations are memory-based, in order to speed up performance. I have written several articles referencing it, for example see this. \u00a0 LiteDB is a\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":"Sample Commands","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2021\/03\/Session1.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2483,"url":"https:\/\/www.rangakrish.com\/index.php\/2021\/07\/18\/sentence-negation\/","url_meta":{"origin":1889,"position":3},"title":"Sentence Negation","author":"admin","date":"July 18, 2021","format":false,"excerpt":"In the last article, I talked about determining sentence types automatically. Another interesting task is to generate the \"negation\" of a given sentence. Example-1: Sentence => \"My teacher lives nearby\" Negation => \"My teacher does not live nearby\" Example-2: Sentence => \"She did not like that speech\" Negation => \"She\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":"Parse Tree","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2021\/07\/parsetree-300x24.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2021\/07\/parsetree-300x24.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2021\/07\/parsetree-300x24.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1741,"url":"https:\/\/www.rangakrish.com\/index.php\/2019\/09\/29\/generating-verb-conjugations\/","url_meta":{"origin":1889,"position":4},"title":"Generating Verb Conjugations","author":"admin","date":"September 29, 2019","format":false,"excerpt":"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 'sleep' is used as example): No. Tense Form Example Sentence (3rd Person Singular Pronoun) 1 Simple Present She sleeps 2 Simple Past\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":"Full Conjugation - Example3","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/09\/example3.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1757,"url":"https:\/\/www.rangakrish.com\/index.php\/2019\/10\/13\/conjugating-phrasal-verbs\/","url_meta":{"origin":1889,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/1889","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=1889"}],"version-history":[{"count":0,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/1889\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/media?parent=1889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/categories?post=1889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/tags?post=1889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}