{"id":1427,"date":"2023-02-16T14:43:18","date_gmt":"2023-02-16T14:43:18","guid":{"rendered":"https:\/\/www.tools.keywordfinder.us\/?page_id=1427"},"modified":"2023-02-16T14:43:18","modified_gmt":"2023-02-16T14:43:18","slug":"readability-checker","status":"publish","type":"page","link":"https:\/\/tools.billionsideas.com\/fr\/readability-checker\/","title":{"rendered":"Readability Checker"},"content":{"rendered":"<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<section>\n\n  \n    <h1>Blog Readability Checker<\/h1>\n    <script src=\"https:\/\/code.jquery.com\/jquery-3.6.0.min.js\"><\/script>\n    <script src=\"script.js\"><\/script>\n  \n  \n   \n    <label for=\"blogPost\">Enter your blog post:<\/label>\n    <textarea id=\"blogPost\"><\/textarea>\n    <br>\n    <button id=\"calculateBtn\">Calculate Readability Score<\/button>\n    <p id=\"score\"><\/p><br><\/section>\n  \n\n\n\n<script>\n$(document).ready(function() {\n  $('#calculateBtn').click(function() {\n    var text = $('#blogPost').val();\n    var words = text.match(\/\\b[-?(\\w+)?]+\\b\/gi);\n    var sentences = text.match(\/[\\w\\d\\s\\S]+[.?!]+\/gi);\n    var syllables = 0;\n    for (var i = 0; i < words.length; i++) {\n      syllables += countSyllables(words[i]);\n    }\n    var score = 206.835 - 1.015 * (words.length \/ sentences.length) - 84.6 * (syllables \/ words.length);\n    $('#score').html('The Flesch-Kincaid Readability Score is: ' + score.toFixed(2));\n  });\n});\n\nfunction countSyllables(word) {\n  word = word.toLowerCase();\n  if(word.length <= 3) { return 1; }\n  word = word.replace(\/(?:[^laeiouy]es|ed|[^laeiouy]e)$\/, '');\n  word = word.replace(\/^y\/, '');\n  return word.match(\/[aeiouy]{1,2}\/g).length;\n}\n\n<\/script>\n<style>\n  section{\n         margin-top:60px;\n        width: 100%;\n        max-width: 970px;\n        background-color: #fff;\n        border: 1px solid #ddd;\n        padding: 25px;\n      }\n<\/style>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Blog Readability Checker Enter your blog post: Calculate Readability Score<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":""},"class_list":["post-1427","page","type-page","status-publish"],"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"Billions Ideas","author_link":"https:\/\/tools.billionsideas.com\/fr\/author\/loginbillionsideas-com\/"},"comment_info":0,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tools.billionsideas.com\/fr\/wp-json\/wp\/v2\/pages\/1427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tools.billionsideas.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tools.billionsideas.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/fr\/wp-json\/wp\/v2\/comments?post=1427"}],"version-history":[{"count":0,"href":"https:\/\/tools.billionsideas.com\/fr\/wp-json\/wp\/v2\/pages\/1427\/revisions"}],"wp:attachment":[{"href":"https:\/\/tools.billionsideas.com\/fr\/wp-json\/wp\/v2\/media?parent=1427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}