{"id":13671,"date":"2022-10-04T22:58:27","date_gmt":"2022-10-04T17:28:27","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/"},"modified":"2022-10-04T22:58:27","modified_gmt":"2022-10-04T17:28:27","slug":"solved-using-the-pig-latin-language-in-ruby-closed","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/","title":{"rendered":"[Solved] Using the &#8216;pig latin language&#8217; in Ruby [closed]"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-26765267\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"26765267\" data-parentid=\"26765010\" data-score=\"2\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Your <code>translate<\/code> method won&#8217;t work. The problem is here:<\/p>\n<pre><code>if word[0] == \"a\" || \"e\" || \"o\" || \"u\" || \"i\"\n<\/code><\/pre>\n<p>and<\/p>\n<pre><code>elsif word[0] != \"a\" || \"e\" || \"o\" || \"u\" || \"i\"\n<\/code><\/pre>\n<p>You can&#8217;t compare that way as the right side of either will not do what you think it will.<\/p>\n<p>Some simple checks will show why there&#8217;s something wrong:<\/p>\n<pre><code>'abc'[0] == \"a\" || \"e\" || \"o\" || \"u\" || \"i\" # =&gt; true\n'efg'[0] == \"a\" || \"e\" || \"o\" || \"u\" || \"i\" # =&gt; \"e\"\n'opq'[0] == \"a\" || \"e\" || \"o\" || \"u\" || \"i\" # =&gt; \"e\"\n'xyz'[0] == \"a\" || \"e\" || \"o\" || \"u\" || \"i\" # =&gt; \"e\"\n\n'abc'[0] != \"a\" || \"e\" || \"o\" || \"u\" || \"i\" # =&gt; \"e\"\n'efg'[0] != \"a\" || \"e\" || \"o\" || \"u\" || \"i\" # =&gt; true\n'opq'[0] != \"a\" || \"e\" || \"o\" || \"u\" || \"i\" # =&gt; true\n'xyz'[0] != \"a\" || \"e\" || \"o\" || \"u\" || \"i\" # =&gt; true\n<\/code><\/pre>\n<p>Why are those wrong? Let&#8217;s look at what&#8217;s happening:<\/p>\n<p>When the word starts with &#8216;a&#8217;, the test <code>'a' == 'a'<\/code> is true:<\/p>\n<pre><code>'abc'[0] == \"a\" # =&gt; true\n<\/code><\/pre>\n<p>If we <code>||<\/code> (&#8220;or&#8221;) true and something, we get true back because it was the first &#8220;true&#8221; value seen:<\/p>\n<pre><code>true || \"e\" # =&gt; true\n<\/code><\/pre>\n<p>If the first test failed, then <code>||<\/code> causes the second test to be evaluated, which in your code was <code>\"e\"<\/code>, and wasn&#8217;t a test, but Ruby didn&#8217;t know that, and thought it was a &#8220;true&#8221; return value so it became the result of the expression:<\/p>\n<pre><code>false || \"e\" # =&gt; \"e\"\n<\/code><\/pre>\n<p>Knowing that, a correct way to write this would be:<\/p>\n<pre><code>'abc'[0] == \"a\" || 'abc'[0] == \"e\" || 'abc'[0] == \"o\" || 'abc'[0] == \"u\" || 'abc'[0] == \"i\" # =&gt; true\n'efg'[0] == \"a\" || 'efg'[0] == \"e\" || 'efg'[0] == \"o\" || 'efg'[0] == \"u\" || 'efg'[0] == \"i\" # =&gt; true\n'opq'[0] == \"a\" || 'opq'[0] == \"e\" || 'opq'[0] == \"o\" || 'opq'[0] == \"u\" || 'opq'[0] == \"i\" # =&gt; true\n'xyz'[0] == \"a\" || 'xyz'[0] == \"e\" || 'xyz'[0] == \"o\" || 'xyz'[0] == \"u\" || 'xyz'[0] == \"i\" # =&gt; false\n\n'abc'[0] != \"a\" &amp;&amp; 'abc'[0] != \"e\" &amp;&amp; 'abc'[0] != \"o\" &amp;&amp; 'abc'[0] != \"u\" &amp;&amp; 'abc'[0] != \"i\" # =&gt; false\n'efg'[0] != \"a\" &amp;&amp; 'efg'[0] != \"e\" &amp;&amp; 'efg'[0] != \"o\" &amp;&amp; 'efg'[0] != \"u\" &amp;&amp; 'efg'[0] != \"i\" # =&gt; false\n'opq'[0] != \"a\" &amp;&amp; 'opq'[0] != \"e\" &amp;&amp; 'opq'[0] != \"o\" &amp;&amp; 'opq'[0] != \"u\" &amp;&amp; 'opq'[0] != \"i\" # =&gt; false\n'xyz'[0] != \"a\" &amp;&amp; 'xyz'[0] != \"e\" &amp;&amp; 'xyz'[0] != \"o\" &amp;&amp; 'xyz'[0] != \"u\" &amp;&amp; 'xyz'[0] != \"i\" # =&gt; true\n<\/code><\/pre>\n<p>however, that rapidly becomes hard to read and unwieldy, so something more concise is needed:<\/p>\n<pre><code>%w[a e o u].include? 'abc'[0] # =&gt; true\n%w[a e o u].include? 'efg'[0] # =&gt; true\n%w[a e o u].include? 'opq'[0] # =&gt; true\n%w[a e o u].include? 'xyz'[0] # =&gt; false\n\n!%w[a e o u].include? 'abc'[0] # =&gt; false\n!%w[a e o u].include? 'efg'[0] # =&gt; false\n!%w[a e o u].include? 'opq'[0] # =&gt; false\n!%w[a e o u].include? 'xyz'[0] # =&gt; true\n<\/code><\/pre>\n<p>There is a problem with this though; As the array size increases, more loops are required to compare to the <code>[0]<\/code> value, which slows the code unnecessarily. A regular expression, written correctly, can get rid of that looping so the speed stays very constant:<\/p>\n<pre><code>'abc'[0][\/[aeou]\/] # =&gt; \"a\"\n'efg'[0][\/[aeou]\/] # =&gt; \"e\"\n'opq'[0][\/[aeou]\/] # =&gt; \"o\"\n'xyz'[0][\/[aeou]\/] # =&gt; nil\n<\/code><\/pre>\n<p>Notice though, that instead of getting true\/false, the results are the character matched by the pattern or nil. In Ruby, only nil and false are considered false values, and everything else is true, so we can translate those into true, true, true, false respectively, but by taking advantage of the <code>!<\/code> operator we can make it even more clear:<\/p>\n<pre><code>!!'abc'[0][\/[aeou]\/] # =&gt; true\n!!'efg'[0][\/[aeou]\/] # =&gt; true\n!!'opq'[0][\/[aeou]\/] # =&gt; true\n!!'xyz'[0][\/[aeou]\/] # =&gt; false\n<\/code><\/pre>\n<p>It might seem that we&#8217;d have to use <code>!!!<\/code> to &#8220;not&#8221; the results like we&#8217;d want when using <code>!=<\/code>, but that isn&#8217;t necessary. A single <code>!<\/code> will do the same thing:<\/p>\n<pre><code>!'abc'[0][\/[aeou]\/] # =&gt; false\n!'efg'[0][\/[aeou]\/] # =&gt; false\n!'opq'[0][\/[aeou]\/] # =&gt; false\n!'xyz'[0][\/[aeou]\/] # =&gt; true\n<\/code><\/pre>\n<p>But wait! There&#8217;s more! Even that can be improved upon a slight amount by removing the string slice (<code>[0]<\/code>) and using a regex anchor. Compare these two, and their benchmark:<\/p>\n<pre><code>require 'fruity'\n\nALPHABET = ('a'..'z').to_a.join\n\ncompare do\n  slice_it  { ALPHABET[0][\/[aeou]\/] }\n  regex_it  { ALPHABET[\/^[aeou]\/] }\nend\n# &gt;&gt; Running each test 8192 times. Test will take about 1 second.\n# &gt;&gt; regex_it is faster than slice_it by 39.99999999999999% \u00b1 10.0%\n<\/code><\/pre>\n<p>So, using something like:<\/p>\n<pre><code>'abc'[\/^[aeou]\/]  # =&gt; \"a\"\n!'abc'[\/^[aeou]\/] # =&gt; false\n!!'abc'[\/^[aeou]\/]  # =&gt; true\n<\/code><\/pre>\n<p>will be fast and compact and let you test to see what a string starts with.<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Using the &#8216;pig latin language&#8217; in Ruby [closed] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Your translate method won&#8217;t work. The problem is here: if word[0] == &#8220;a&#8221; || &#8220;e&#8221; || &#8220;o&#8221; || &#8220;u&#8221; || &#8220;i&#8221; and elsif word[0] != &#8220;a&#8221; || &#8220;e&#8221; || &#8220;o&#8221; || &#8220;u&#8221; || &#8220;i&#8221; You can&#8217;t compare that way as the right side of either will not do what you think it will. Some &#8230; <a title=\"[Solved] Using the &#8216;pig latin language&#8217; in Ruby [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/\" aria-label=\"More on [Solved] Using the &#8216;pig latin language&#8217; in Ruby [closed]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[419,455],"class_list":["post-13671","post","type-post","status-publish","format-standard","hentry","category-solved","tag-methods","tag-ruby"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Using the &#039;pig latin language&#039; in Ruby [closed] - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Using the &#039;pig latin language&#039; in Ruby [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Your translate method won&#8217;t work. The problem is here: if word[0] == &quot;a&quot; || &quot;e&quot; || &quot;o&quot; || &quot;u&quot; || &quot;i&quot; and elsif word[0] != &quot;a&quot; || &quot;e&quot; || &quot;o&quot; || &quot;u&quot; || &quot;i&quot; You can&#8217;t compare that way as the right side of either will not do what you think it will. Some ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-04T17:28:27+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-using-the-pig-latin-language-in-ruby-closed\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-using-the-pig-latin-language-in-ruby-closed\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Using the &#8216;pig latin language&#8217; in Ruby [closed]\",\"datePublished\":\"2022-10-04T17:28:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-using-the-pig-latin-language-in-ruby-closed\\\/\"},\"wordCount\":352,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"keywords\":[\"methods\",\"ruby\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-using-the-pig-latin-language-in-ruby-closed\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-using-the-pig-latin-language-in-ruby-closed\\\/\",\"name\":\"[Solved] Using the 'pig latin language' in Ruby [closed] - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"datePublished\":\"2022-10-04T17:28:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-using-the-pig-latin-language-in-ruby-closed\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-using-the-pig-latin-language-in-ruby-closed\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-using-the-pig-latin-language-in-ruby-closed\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Using the &#8216;pig latin language&#8217; in Ruby [closed]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Using the 'pig latin language' in Ruby [closed] - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Using the 'pig latin language' in Ruby [closed] - JassWeb","og_description":"[ad_1] Your translate method won&#8217;t work. The problem is here: if word[0] == \"a\" || \"e\" || \"o\" || \"u\" || \"i\" and elsif word[0] != \"a\" || \"e\" || \"o\" || \"u\" || \"i\" You can&#8217;t compare that way as the right side of either will not do what you think it will. Some ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/","og_site_name":"JassWeb","article_published_time":"2022-10-04T17:28:27+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Using the &#8216;pig latin language&#8217; in Ruby [closed]","datePublished":"2022-10-04T17:28:27+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/"},"wordCount":352,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["methods","ruby"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/","url":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/","name":"[Solved] Using the 'pig latin language' in Ruby [closed] - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-10-04T17:28:27+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Using the &#8216;pig latin language&#8217; in Ruby [closed]"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/13671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=13671"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/13671\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=13671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=13671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=13671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}