{"id":375,"date":"2022-10-04T17:28:27","date_gmt":"2022-10-04T17:28:27","guid":{"rendered":"https:\/\/jassweb.com\/new22\/solved-using-the-pig-latin-language-in-ruby-closed\/"},"modified":"2022-10-04T17:28:27","modified_gmt":"2022-10-04T17:28:27","slug":"solved-using-the-pig-latin-language-in-ruby-closed-2","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/","title":{"rendered":"[Solved] Using the \u2018pig latin language\u2019 in Ruby [closed]"},"content":{"rendered":"<h2> Introduction <\/h2>\n<p>[ad_1]<\/p>\n<p>Pig Latin is a language game or argot in which words in English are altered, usually by adding a fabricated suffix or by moving the onset or initial consonant or consonant cluster of a word to the end of the word and adding a vocalic syllable to create such a suffix. Ruby is a programming language that is used to create applications and websites. In this article, we will discuss how to use the Pig Latin language in Ruby. We will look at the syntax and how to use it to create a Pig Latin translator. We will also discuss some of the advantages and disadvantages of using Pig Latin in Ruby.<\/p>\n<h2> Solution<\/h2>\n<p><\/p>\n<p>def pig_latin(word)<br \/>\n  vowels = %w(a e i o u)<br \/>\n  if vowels.include?(word[0])<br \/>\n    word + &#8220;way&#8221;<br \/>\n  else<br \/>\n    consonants = &#8220;&#8221;<br \/>\n    word.each_char do |char|<br \/>\n      if !vowels.include?(char)<br \/>\n        consonants << char\n      else\n        break\n      end\n    end\n    word[consonants.length..-1] + consonants + \"ay\"\n  end\nend <\/p>\n<p><\/p>\n<div class=\"entry-content\" itemprop=\"text\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1088640234840270\" crossorigin=\"anonymous\"><\/script><\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<p>\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\u2019t 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\u2019t 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\u2019s 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\u2019s look at what\u2019s happening:<\/p>\n<p>When the word starts with \u2018a\u2019, 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> (\u201cor\u201d) true and something, we get true back because it was the first \u201ctrue\u201d 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\u2019t a test, but Ruby didn\u2019t know that, and thought it was a \u201ctrue\u201d 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\u2019d have to use <code>!!!<\/code> to \u201cnot\u201d the results like we\u2019d want when using <code>!=<\/code>, but that isn\u2019t 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\u2019s 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<\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p> <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p>\n<\/div>\n<\/div>\n<p>solved Using the \u2018pig latin language\u2019 in Ruby [closed] <\/p>\n<p><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1088640234840270\" crossorigin=\"anonymous\"><\/script><\/p>\n<p><script><\/p>\n<p><\/script> <\/div>\n<p>[ad_2]<\/p>\n<h1>Using the &#8216;Pig Latin Language&#8217; in Ruby<\/h1>\n<p>Are you looking to learn how to use the &#8216;Pig Latin Language&#8217; in Ruby? Pig Latin is a language game or argot in which words in English are altered, usually by adding a fabricated suffix or by moving the onset or initial consonant or consonant cluster of a word to the end of the word and adding a vocalic syllable to create such a suffix.<\/p>\n<p>In Ruby, you can use the <a href=\"https:\/\/github.com\/jmettraux\/piglatin\">piglatin gem<\/a> to easily convert English words into Pig Latin. The gem provides a simple API for converting words and sentences into Pig Latin. To use the gem, you first need to install it:<\/p>\n<pre><code>gem install piglatin<\/code><\/pre>\n<p>Once the gem is installed, you can use the <code>PigLatin.translate<\/code> method to convert words and sentences into Pig Latin. For example:<\/p>\n<pre><code>PigLatin.translate(\"Hello World\")\n#=> \"Ellohay Orldway\"<\/code><\/pre>\n<p>You can also use the <code>PigLatin.translate_sentence<\/code> method to convert an entire sentence into Pig Latin. For example:<\/p>\n<pre><code>PigLatin.translate_sentence(\"Hello World\")\n#=> \"Ellohay Orldway\"<\/code><\/pre>\n<p>Using the piglatin gem, you can easily convert English words and sentences into Pig Latin in Ruby.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction [ad_1] Pig Latin is a language game or argot in which words in English are altered, usually by adding a fabricated suffix or by moving the onset or initial consonant or consonant cluster of a word to the end of the word and adding a vocalic syllable to create such a suffix. Ruby is &#8230; <a title=\"[Solved] Using the \u2018pig latin language\u2019 in Ruby [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/\" aria-label=\"More on [Solved] Using the \u2018pig latin language\u2019 in Ruby [closed]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[419,455],"class_list":["post-375","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 v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Using the \u2018pig latin language\u2019 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-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Using the \u2018pig latin language\u2019 in Ruby [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"Introduction [ad_1] Pig Latin is a language game or argot in which words in English are altered, usually by adding a fabricated suffix or by moving the onset or initial consonant or consonant cluster of a word to the end of the word and adding a vocalic syllable to create such a suffix. Ruby is ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/\" \/>\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=\"1 minute\" \/>\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-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Using the \u2018pig latin language\u2019 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-2\/\"},\"wordCount\":153,\"commentCount\":0,\"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-2\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/\",\"name\":\"[Solved] Using the \u2018pig latin language\u2019 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-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Using the \u2018pig latin language\u2019 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\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"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 \u2018pig latin language\u2019 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-2\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Using the \u2018pig latin language\u2019 in Ruby [closed] - JassWeb","og_description":"Introduction [ad_1] Pig Latin is a language game or argot in which words in English are altered, usually by adding a fabricated suffix or by moving the onset or initial consonant or consonant cluster of a word to the end of the word and adding a vocalic syllable to create such a suffix. Ruby is ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/","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":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Using the \u2018pig latin language\u2019 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-2\/"},"wordCount":153,"commentCount":0,"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-2\/","url":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/","name":"[Solved] Using the \u2018pig latin language\u2019 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-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-using-the-pig-latin-language-in-ruby-closed-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Using the \u2018pig latin language\u2019 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\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","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\/375","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=375"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/375\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}