{"id":225,"date":"2024-05-05T08:43:11","date_gmt":"2024-05-05T08:43:11","guid":{"rendered":"https:\/\/worldseotool.com\/?page_id=225"},"modified":"2024-05-05T08:43:11","modified_gmt":"2024-05-05T08:43:11","slug":"grammar-checker-tool","status":"publish","type":"page","link":"https:\/\/shoptips24.com\/tools\/grammar-checker-tool\/","title":{"rendered":"Grammar Checker Tool"},"content":{"rendered":"\n\n    <style>\n        \n        }\n\n        h1 {\n            margin-top: 30px;\n        }\n\n        #input-text {\n            width: 80%;\n            height: 200px;\n            margin: 20px auto;\n            display: block;\n            resize: none;\n        }\n\n        #check-button {\n            margin-bottom: 20px;\n            padding: 10px 20px;\n            background-color: #007bff;\n            color: white;\n            border: none;\n            cursor: pointer;\n        }\n\n        #check-button:hover {\n            background-color: #0056b3;\n        }\n\n        #error-list {\n            margin: 0 auto;\n            width: 80%;\n            text-align: left;\n        }\n\n        .error {\n            color: red;\n        }\n    <\/style>\n\n<body>\n    <h1>Grammar Checker Tool<\/h1>\n    <textarea id=\"input-text\" placeholder=\"Paste your text here...\"><\/textarea>\n    <br \/>\n    <button id=\"check-button\">Check Grammar<\/button>\n    <div id=\"error-list\"><\/div>\n\n    <script>\n        document.getElementById('check-button').addEventListener('click', function() {\n            var inputText = document.getElementById('input-text').value.trim();\n\n            if (inputText === '') {\n                alert('Please enter some text to check grammar.');\n                return;\n            }\n\n            \/\/ Basic grammar check - checking for missing periods at the end of sentences\n            var errors = [];\n            var sentences = inputText.split(\/[.?!]\/);\n            sentences.forEach(function(sentence) {\n                if (sentence.trim() !== '' && sentence.trim().slice(-1) !== '.') {\n                    errors.push(sentence.trim());\n                }\n            });\n\n            \/\/ Display errors\n            var errorList = document.getElementById('error-list');\n            errorList.innerHTML = '';\n            if (errors.length > 0) {\n                errors.forEach(function(error) {\n                    var errorItem = document.createElement('div');\n                    errorItem.className = 'error';\n                    errorItem.textContent = 'Missing period at the end of: \"' + error + '\"';\n                    errorList.appendChild(errorItem);\n                });\n            } else {\n                errorList.textContent = 'No grammar errors found.';\n            }\n        });\n    <\/script>\n<\/body><div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgRjkaAwpu4EyjNxLibE8-NKyPQY0ymOHqR7V9x4hmdaCYh1uoWgaoG9QG6hfKL2vU9E6Ym0H8tfJscOdR2Tp26zWQdokdA7N8dx1_OFLSe9h6zHjX0XYdjHoFZ5sFOE1RnO1VAL92YtTDUAjjOaxCpozG7quwouqoGgPjYUBy2b_4yQ_xSoZfyCdi_cVU\/s512\/grammar.png\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img fetchpriority=\"high\" decoding=\"async\" border=\"0\" data-original-height=\"512\" data-original-width=\"512\" height=\"320\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgRjkaAwpu4EyjNxLibE8-NKyPQY0ymOHqR7V9x4hmdaCYh1uoWgaoG9QG6hfKL2vU9E6Ym0H8tfJscOdR2Tp26zWQdokdA7N8dx1_OFLSe9h6zHjX0XYdjHoFZ5sFOE1RnO1VAL92YtTDUAjjOaxCpozG7quwouqoGgPjYUBy2b_4yQ_xSoZfyCdi_cVU\/s320\/grammar.png\" width=\"320\" \/><\/a><\/div><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Grammar Checker Tool Check Grammar<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-225","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":0,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages\/225\/revisions"}],"wp:attachment":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/media?parent=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}