Wordcounter

Listet ein detailliertes Ergebnis von deinem eingegebenen Text

Der hier verwendete Code

<script src="/js_webseite/jquery.js"></script> <style>*{ font-family:helvetica neue,Helvetica,Arial,Geneva,sans-serif; font-size:100% } #wrapper{ width:100%; margin:0 auto } #readability{ font-size:60%; font-style:italic; color:#eee } .box_container{ border:1px solid #158cba; margin:2px 0; line-height:1.5; background-color:#fff; -webkit-box-shadow:-3px 0 5px -3px rgba(1,1,1,.87),3px 0 5px -3px rgba(1,1,1,.87); box-shadow:-3px 0 5px -3px rgba(1,1,1,.87),3px 0 5px -3px rgba(1,1,1,.87); -moz-border-radius-bottomright:7px; -webkit-border-bottom-right-radius:7px; border-bottom-right-radius:7px; -moz-border-radius-bottomleft:7px; -webkit-border-bottom-left-radius:7px; border-bottom-left-radius:7px } #generation{ padding:1px; border:1px solid #090; font-size:100%; line-height:1.5; margin:10px 0 } #textToAnalyzeContainer,#first_column{ line-height:1.5; padding-right:0; padding-left:0 } #first_column{ border-bottom:none; width:100%; } #upload_a_file_option{ display:inline } @media only screen and (min-width:800px){ #textToAnalyzeContainer{ } } #boxContent{ margin:5px } #extraOption{ float:right } #densityContainer{ line-height:1.5 } #textbox{ width:100%; height:350px; border:1px solid #999; margin-top:0; margin-bottom:0 } #banner{ margin-top:15px } #ad{ display:block; text-align:center } #textad{ display:none } #logo{ float:left; margin:0 } #headerContainer{ position:relative; margin-bottom:0; padding-bottom:0 } #social{ margin-top:10px } .percentage{ color:#777 } #definitionBox .definition{ margin-bottom:0; margin-top:10px; font-weight:700 } .firstList{ margin-top:0 } .clear{ clear:both } #mainContent{ position:relative; width:100%; margin-top:0; padding-top:0; margin-bottom:10px } #statistics{ height:100%; padding-right:0; padding-left:0; box-shadow:none; padding-bottom:0; margin-bottom:0; overflow:visible; width:100%; } @media only screen and (min-width:800px){ #statistics{ min-height:2500px } } #description{ font-size:100%; line-height:1.5; text-align:justify } #navs{ margin:5px; font-size:100%; display:inline; float:left } #typeOption{ margin:10px } #myCanvas{ margin:auto } #tagList{ display:none } #scoretable{ margin:5px auto } table td{ padding:5px } table th{ text-align:center } #dale_chall_formula{ margin:10px auto; display:block; padding:5px } #title{ font-family:sans-serif; font-size:30px; color:#c43c35; font-weight:700; line-height:19px } table.list3000{ font-family:Arial; font-size:13px; margin-bottom:10px; width:100% } .list3000 td{ vertical-align:top; text-align:justify; padding:10px; width:15% } #converter{ margin:4px 0 6px; text-align:center } .convert{ margin-right:5px; font-size:90%; display:inline-block; margin-bottom:5px } .convert input{ width:65px } #toAlternatingCaseButton{ width:85px } #htmlStrip{ margin:10px 0 } #undoButton{ margin:0 } #showExtraStatistics{ font-style:italic; font-weight:400; font-size:12px; display:none; padding:0 } #randomTextGenerate,#randomTextGenerate>span{ margin:0; padding:0 } #randomTextGenerate>span{ float:left } #randomTextGenerate *{ margin-top:0 } #amountOption{ margin-right:0; padding-right:0 } #description{ position:relative } #infoBox,#definitionBox{ padding-left:0; padding-right:0; margin-top:0 } .instruction{ margin:10px 5px 10px 10px; text-align:justify } #definitionBox .instruction,#infoBox .instruction{ padding-left:4px; padding-right:7px } #contact{ text-align:left; float:right } input[type=button]:hover{ cursor:pointer } input[type=button]{ -webkit-border-radius:3px; -moz-border-radius:3px; border-radius:3px; -webkit-box-shadow:-3px 0 5px -3px rgba(1,1,1,.87),3px 0 5px -3px rgba(1,1,1,.87); box-shadow:-3px 0 5px -3px rgba(1,1,1,.87),3px 0 5px -3px rgba(1,1,1,.87) } .header,input[type=button]{ font-weight:700; font-family:helvetica neue,Helvetica,Arial,Geneva,sans-serif!important; color:#fff; text-shadow:0 -1px 0 rgba(0,0,0,.25); border-color:#158cba; height:28px } .header{ margin:0; padding:2px 10px 1px; font-size:15px; font-weight:700 } #sidebar_ads{ } #topQuatity,#excluding{ margin-right:26px; padding:2px 5px; line-height:1.5; height:30px; display:inline; font-family:klavika-web,helvetica neue,Helvetica,Arial,Geneva,sans-serif!important } #topQuatity{ margin-left:10px } #topQuatity input{ color:#000; text-align:center } .notice{ color:#fff; text-shadow:0 -1px 0 rgba(0,0,0,.25); background-color:#e83b1c; border-color:#e83b1c; -webkit-box-shadow:-3px 0 5px -3px rgba(1,1,1,.87),3px 0 5px -3px rgba(1,1,1,.87); box-shadow:-3px 0 5px -3px rgba(1,1,1,.87),3px 0 5px -3px rgba(1,1,1,.87) } #contact a,#contact a:visited{ text-decoration:none } .stat_percentage{ color:#158cba; font-style:italic; font-size:90%; font-weight:600 } #dale_chall_mapping{ font-weight:700; padding:10px 0 } #stats .stat .notice label,#more_stats .stat .notice label{ display:inline } #infoBox>h1,#infoBox>h2,#definitionBox>h2,#infoBox>h3,#definitionBox>h3{ line-height:1.5 } #mainContent,#densityContainer,#description,#description .row,#contact,#densityList{ margin-left:0; margin-right:0 } #the_formula{ font-size:130%; text-align:center; padding:15px 2px } #topDensity{ margin:10px; padding-top:20px } #bottom_banner_ad{ width:728px; margin:10px auto } .stat_header label{ display:inline } #stats label,#more_stats label{ width:230px; display:inline; font-weight:400 } #stats .stat_con label,#more_stats .stat_con label{ font-weight:700 } label{ width:230px } label .density{ width:180px } .stat_con{ width:75px } .stat_con,.stat_con_selected{ color:#fff; font-style:bold; float:left; padding:1px 2px; -webkit-border-radius:10px; -moz-border-radius:10px; border-radius:10px; text-align:left; font-size:14px } #stats .stat_con_selected{ } .stat{ padding-bottom:5px; margin-bottom:5px; font-size:12px; border-bottom:1px solid #3591f0; border-bottom:1px solid rgba(53,145,240,.5); -webkit-background-clip:padding-box; background-clip:padding-box } .stat_header{ font-size:13px; text-decoration:underline; margin-bottom:3px; margin-top:-2px } #stat_count{ width:175px; float:left } #stat_entire,#stat_selected,#stat_count{ font-weight:700; color:#4ca2f5 } #stat_entire{ width:75px; float:left; text-align:center } #stat_selected{ float:right } #stats,#more_stats{ padding-right:0; overflow:visible } .stat_label{ margin-right:5px; margin-top:4px; width:175px; float:left } .stat_con_selected{ float:right } .embed_direction span{ display:block; text-align:center } .embed_direction{ margin:20px auto; font-size:110% } #embed_example{ margin:20px auto } .wct_embed_code_box{ background-color:#158cba; color:#fff; border:2px #e83b1c; border-style:solid; border-width:5px; padding:5px; margin:10px auto; font-size:14px; text-align:left } #wct_embed_code_big{ font-size:15px } #direction_example{ margin-top:35px; margin-bottom:5px } #about_us_1,#about_us_2,#about_us_3,#about_us_4{ font-size:110% } #about_us_2,#about_us_3,#about_us_4{ margin-top:10px } #addthis_share_box{ margin:10px auto } #atstbs{ margin:5px auto } #form_file_upload,#file_upload{ display:inline } .instruction_paragraph{ margin-top:8px } #add_this{ float:right } .navbar-default{ background-image:none; margin-bottom:2px } .navbar-default .navbar-collapse,.navbar-default .navbar-form{ font-size:115% } .navbar-default .navbar-nav>li>a{ color:#158cba; font-size:100% } #navbar-brand-logo h1:hover,.navbar-default .navbar-nav>li>a:hover{ color:#e83b1c } #navbar-brand-logo{ background-image:url(assets/icon_48.png); padding-left:45px; padding-right:10px; background-repeat:no-repeat; background-position:0 } #navbar-brand-logo h1{ color:#158cba; font-size:120%; display:inline-block; margin-top:-2px } #other_products{ float:left; margin-bottom:8px; margin-left:25px } #before_textarea_ads_label{ text-align:center; font-size:130%; margin:4px 2px; font-weight:700; padding-bottom:2px; min-height:90px } #before_textarea_ads{ margin-top:2px; margin-bottom:3px } #after_textarea_ads{ margin-top:0; margin-bottom:0 } #link_unit_ads{ font-size:120% } #non_english_language_option{ font-style:italic; text-align:right; float:right } #more_info_wc_stats{ margin-right:-6px; margin-left:-6px; margin-top:-8px } #quote_of_the_day{ margin-top:15px; padding:5px; font-size:110%; border:3px solid transparent; -moz-border-image:-moz-linear-gradient(top,#3acfd5 0%,#3591F0 100%); -webkit-border-image:-webkit-linear-gradient(top,#3acfd5 0%,#3591F0 100%); border-image:linear-gradient(to bottom,#3acfd5 0%,#3591F0 100%); border-image-slice:1 } #today_quote_website a{ color:#ff7000; font-weight:700; font-size:110% } #quote_of_the_day_content{ font-style:italic } #quote_of_the_day_content a{ text-decoration:none } #quote_of_the_day_content a:hover{ color:#ff7000 } #customized_ads{ margin:5px auto 0; text-align:center } #customized_img_ad{ max-width:100%; height:auto } #more_stats{ display:none } #more_stats_header{ margin-top:-5px } #below_statistics_ads{ margin:10px auto 5px; width:340px } #before_statistics_ads_label{ text-align:center; font-weight:700; margin-top:8px } #stats_info{ overflow-y:auto; margin-bottom:15px } #readability_info{ margin-top:5px } #readability_formulas_header{ margin-top:12px } .formula_name{ text-decoration:underline } .the_formula{ margin-bottom:10px } #readability_formulas{ margin-bottom:12px } #infoBox .header a{ text-decoration:none; color:#fff } #embed_title{ text-align:center; margin-top:25px } #fb-like-box-count{ margin-top:8px; margin-right:12px; display:inline-block } #ga-sidebar-ad{ text-align:center } #amazon_link_ad{ padding-top:6px } .centeralign{ text-align:center } #tshirt-widget{ margin-top:15px } #emoji-fb-page{ margin-top:8px; text-align:center } @media only screen and (max-device-width:800px){ #textbox{ font-size:16px } #navbar-brand-logo h1{ font-size:110%; display:inline } #counter{ font-size:150%; padding:0 } #sidebar_ads{ display:none } #upload_a_file_option{ display:none } h1#title_brand{ font-size:70% } #textToAnalyzeContainer_header{ font-size:85%; padding-left:4px } .dsk_only{ display:none!important } } .container{ width:100% } #wc_embed_href,#cool_symbol_href,#emoji_keyboard_href{ } table{ border:1px solid #ccc } table th,table td{ padding:8px 10px; border:1px solid #ccc } table td.td_value{ text-align:center } #extra_wordcount_statistics_header,#readability_statistics_header,#reading_time_statistics_header,#length_statistics_header,#keyword_density_statistics_header{ margin-top:12px } td.alignleft{ text-align:left; background-color:#eee } #exclude-grammar-word-switcher-container{ text-align:right; margin-top:10px; margin-bottom:10px; float:right } #number_of_top_keywords{ float:left; text-align:left; margin-top:15px; margin-left:20px; font-size:110% } #number_of_top_keywords_value{ text-align:center } #clearTextButton{ padding-top:4px; padding-bottom:4px } #keyword_density_tabs{ max-height:520px; overflow-y:scroll } .ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active,.ui-button:active,.ui-button.ui-state-active:hover{ border:1px solid #158cba; background:#158cba } .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary{ color:#fff; background:#158cba } #textToAnalyzeContainer_header{ padding-right:0 } #close_file{ color:#e83b1c; opacity:1; font-size:105%; cursor:pointer } .close{ display:inline; float:right; height:10px; width:10px } .close{ float:right; font-size:21px; font-weight:700; line-height:1.2; color:#000; text-shadow:0 1px 0 #fff; filter:alpha(opacity=20); opacity:.2 } #before_desc_ads{ margin:2px auto; text-align:center; padding-left:0; padding-right:0 } #fb-fanpagebox{ margin-left:auto; margin-right:auto; text-align:center } #guessemoji_ad{ width:250px; padding:0; margin-left:auto; margin-right:auto } #guessemoji_ad .guessemoji_intro{ color:#333; font-family:raleway,sans-serif; font-size:18px; font-weight:800; line-height:6px; margin:15px 0 5px; text-align:center; text-transform:uppercase } #donate_button_cointainer{ float:right; margin-top:7px; margin-left:6px; margin-right:0; padding-right:0 } #counter{ color:#fff; font-size:200%; padding:2px 1px 2px 5px; margin-top:2px; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; display:inline } #brief_summary{ padding-top:1px } #joke_of_the_day_panel{ display:none } #joke_of_the_day_div{ padding:5px 7px 3px; line-height:1.25; font-size:103% } #joke_of_the_day_div a{ color:#ff6550; font-weight:700; display:inline-block; margin-top:5px } .panel-primary>.panel-heading-joke{ color:#fff; background-color:#158cba; border-color:#158cba; font-size:14px; padding:2px 12px } .panel.panel-primary{ margin-bottom:2px; max-height:120px; overflow-y:scroll } #basic_word_count_stats_table,#extra_word_count_stats_table,#length_stats_table,#reading_time_stats_table,#readability_stats_table,#keyword_density-tab-1-table,#keyword_density-tab-2-table,#keyword_density-tab-3-table{ border-spacing:0; width:100% } th,td{ padding:5px } #bottom_adsense{ margin-left:auto; margin-right:auto; text-align:center } .navbar{ min-height:36px; height:36px } .navbar-brand{ height:36px; padding:8px 15px } .navbar-nav>li>a{ padding-top:8px; padding-bottom:8px } table td { padding: 5px; overflow-wrap: normal; max-width: 100vw; word-break: break-all; }</style> <div id="wrapper" class="container"> <div class="clear"></div> <div id="headerContainer" class="row"> <div id="brief_summary" class="col-md-8"> <div id="counter" class="notice" tabindex='1'>0 Wörter, 0 Buchstaben.</div> </div> <div class="clear"> </div> </div> <div id="mainContent" class="row"> <div id="first_column" class="box_container col-md-8"> <div id="textToAnalyzeContainer"> <div class="header" id="textToAnalyzeContainer_header">Füge einen Textein unddasTool Startet <div id="upload_a_file_option" class="dsk_only">oder <form id="form_file_upload"> <input id="file_upload" name="file_upload" type="file"> <span id="queue"></span> </form> </div> <span id='close_file' class='close'>X</span> <div class="clear"> </div> </div> <div id="boxContent"><div> <div id="before_textarea_ads" class="dsk_only"> <div class="clear"></div> </div> <textarea id="textbox" class="resizable"></textarea> <div id="after_textarea_ads" class="dsk_only"> <div class="clear"></div> </div> </div> </div> <div class="clear"></div> </div> <div id="description" class="dsk_only"> <div id="statistics" class="box_container col-md-4"> <div id="stats"> <div id="stats_info"> <div class="header">Wörter zähl analyse </div> <table id="basic_word_count_stats_table"> <tbody> <tr> <td style="width:75%;">Wörter</td> <td style="width:25%;" class="td_value" id="num_word"></td> </tr> <tr> <td>Buchstaben mit Leerzeichen</td> <td class="td_value" id="num_character"></td> </tr> <tr> <td>Buchstaben ohne Leerzeichen</td> <td class="td_value" id="num_character_wo_spaces"></td> </tr> </tbody> </table> <div class="header hide_if_not_english" id="extra_wordcount_statistics_header">Zusätzliche Statistiken</div> <table id="extra_word_count_stats_table"> <tbody> <tr> <td style="width:75%;">Syllables</td> <td style="width:25%;" class="td_value" id="num_syllable"></td> </tr> <tr> <td>Sentences</td> <td class="td_value" id="num_sentence"></td> </tr> <tr> <td>Unique Words</td> <td class="td_value"> <span id="num_unique_word"></span> <div id="showExtraStatistics"><input type="button" id="extraStatisticsButton" value="Show" /></div> </td> </tr> <tr> <td>Average Word Length (char)</td> <td class="td_value" id="avg_word_length"></td> </tr> <tr> <td>Average Sentence Length (word)</td> <td class="td_value" id="avg_sentence_length"></td> </tr> <tr> <td>Monosyllabic Words (1 syllable)</td> <td class="td_value" id="num_mono_syllable"></td> </tr> <tr> <td>Polysyllabic Words (?3 syllables)</td> <td class="td_value" id="num_poly_syllable"></td> </tr> <tr> <td>Syllables per word</td> <td class="td_value" id="syllable_per_word"></td> </tr> <tr> <td>Paragraphs</td> <td class="td_value" id="num_paragraph"></td> </tr> <tr> <td>Difficult Words <span><a href="#definition_difficult_word"><img src="https://wordcounttools.com/assets/newWindowIcon.gif" alt="Readability level"></a></span></td> <td class="td_value" id="num_difficult_word"></td> </tr> </tbody> </table> <div class="header hide_if_not_english" id="length_statistics_header">Length Statistics</div> <table id="length_stats_table"> <tbody> <tr> <td style="width:75%;">Short Words (&lt;=3 characters)</td> <td style="width:25%;" class="td_value" id="num_short_word"></td> </tr> <tr> <td>Long Words (&gt;=7 characters)</td> <td class="td_value" id="num_long_word"></td> </tr> <tr> <td colspan="2" class="alignleft">Longest sentence (by number of characters)</td> </tr> <tr> <td colspan="2" id="longest_sentence_by_characters"></td> </tr> <tr> <td colspan="2" class="alignleft">Longest words (by number of characters)</td> </tr> <tr> <td colspan="2" id="longest_word_by_characters"></td> </tr> <tr> <td colspan="2" class="alignleft">Longest words (by number of syllables)</td> </tr> <tr> <td colspan="2" id="longest_word_by_syllables"></td> </tr> </tbody> </table> <div class="header hide_if_not_english" id="reading_time_statistics_header">Reading Time</div> <table id="reading_time_stats_table"> <tbody> <tr> <th style="width:75%;">Item</th> <th style="width:25%;">Time</th> </tr> <tr> <td>Estimated Reading Time <span><a href="#definition_estimated_reading_time"><img src="https://wordcounttools.com/assets/newWindowIcon.gif" alt="Estimated Reading Time"></a></span></td> <td class="td_value" id="estimate_reading_time"></td> </tr> <tr> <td>Estimated Speaking Time <span><a href="#definition_estimated_speaking_time"><img src="https://wordcounttools.com/assets/newWindowIcon.gif" alt="Estimated Speaking Time"></a></span></td> <td class="td_value" id="estimate_speaking_time"></td> </tr> </tbody> </table> <div class="header hide_if_not_english" id="readability_statistics_header">Readability Statistics</div> <table id="readability_stats_table"> <tbody> <tr> <th style="width:75%;">Readability Formula</th> <th style="width:25%;">Grade</th> </tr> <tr> <td>Dale-Chall Readability level <span> <a href="https://charactercounttool.com/dale_chall_readability_level.html" target="_blank"><img src="https://wordcounttools.com/assets/newWindowIcon.gif" alt="Readability level Description"></a></span></td> <td class="td_value" id="readability_level"></td> </tr> <tr> <td>Dale-Chall Readability Index</td> <td class="td_value" id="dale_chall_readability"></td> </tr> <tr> <td>Automated Readability Index</td> <td class="td_value" id="automated_readability_index"></td> </tr> <tr> <td>Coleman-Liau Index</td> <td class="td_value" id="coleman_liau_index"></td> </tr> <tr> <td>Flesch Reading Ease Score</td> <td class="td_value" id="flesch_reading_ease_score"></td> </tr> <tr> <td>Flesch-Kincaid Grade Level</td> <td class="td_value" id="flesch_kincaid_grade_level"></td> </tr> <tr> <td>Gunning Fog Index</td> <td class="td_value" id="gunning_fog_index"></td> </tr> </tbody> </table> <div class="header hide_if_not_english" id="keyword_density_statistics_header">Top Keyword Density</div> <div id="number_of_top_keywords"> Top <input type="text" id="number_of_top_keywords_value" value="10" size="4" /> </div> <div id="exclude-grammar-word-switcher-container"> Exclude grammar words &nbsp;&nbsp; <input type="checkbox" checked id="exclude-grammar-word-switcher" name="exclude-grammar-word-switcher"> </div> <div class="clear"></div> <div id="keyword_density_tabs"> <ul> <li><a href="./#keyword_density-tab-1">1 Word</a></li> <li><a href="./#keyword_density-tab-2">2 Words</a></li> <li><a href="./#keyword_density-tab-3">3 Words</a></li> </ul> <div class="clear"></div> <div id="keyword_density-tab-1"> <table id="keyword_density-tab-1-table"> <tr> <td style="width: 50%;"></td> <td style="width: 50%;"></td> </tr> </table> <div class="clear"></div> </div> <div id="keyword_density-tab-2"> <table id="keyword_density-tab-2-table"> <tr> <td style="width: 50%;"></td> <td style="width: 50%;"></td> </tr> </table> <div class="clear"></div> </div> <div id="keyword_density-tab-3"> <table id="keyword_density-tab-3-table"> <tr> <td style="width: 50%;"></td> <td style="width: 50%;"></td> </tr> </table> <div class="clear"></div> </div> <div class="clear"></div> </div> <div class="clear"> </div> </div> </div> <div class="clear"> </div> </div> <div class="clear"></div> </div> <script src="/js_webseite/jquery.wordcounttool.min.js"></script> <script> var undoingText=""; var READING_WPM=200; var SPEAKING_WPM=125; var more_stats_status=false; var DEFAULT_TOP_FREQUENCY=10; var exclude_grammar_word_option=true; var numberofTopWordFreq=DEFAULT_TOP_FREQUENCY; var INPUTED_TEXT_KEY="INPUTED_TEXT_KEY"; var isInMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);function getwccInfoForNonEnglishText(nonEnglishText){ var wccInfo=[]; var trimedText=$.trim(nonEnglishText); wccInfo['num_character']=trimedText.length; var wordList=trimedText.split(/[\s\n]+/); wccInfo['num_word']=trimedText.length>0?wordList.length:0; return wccInfo;} function updateStats(){ getwccInfo(); resizeHeightOfDefinitionBox();} function updateStatsWithExtraStatistics(){ getwccInfo(true);} function getwccInfo(withExtraStatistics){var text=$("#textbox").val();var isNotEnglish=$("#isNotEnglish").prop('checked');var wccInfo;var selected_text="";var wccInfo_selected;if(isNotEnglish){wccInfo=getwccInfoForNonEnglishText(text);} else{wccInfo=$.wordCountTool.getwccInfo(text,withExtraStatistics);densityStats(wccInfo);} displaywccInfo(wccInfo,withExtraStatistics);displaywccInfoInTitle(wccInfo);saveTextToStorage(text);} function displaywccInfo(wccInfo,withExtraStatistics){ var isNotEnglish=$("#isNotEnglish").prop('checked'); if(!isNotEnglish){ $("#num_word").text(wccInfo['num_word']); $("#num_character").text(wccInfo['num_character']); $("#num_character_wo_spaces").text(wccInfo['num_character_wo_spaces']); $("#num_syllable").text(wccInfo['num_syllable']); $("#num_mono_syllable").text(wccInfo['num_mono_syllable']); $("#num_poly_syllable").text(wccInfo['num_poly_syllable']);$("#num_sentence").text(wccInfo['num_sentence']); $("#num_paragraph").text(wccInfo['num_paragraph']); $("#avg_sentence_length").text(wccInfo['avg_sentence_length']); $("#avg_word_length").text(wccInfo['avg_word_length']); $("#dale_chall_readability").text(wccInfo['dale_chall_index']); $("#syllable_per_word").text(wccInfo['syllable_per_word']); if(wccInfo['num_character']>0) $("#readability_level").text(getReadabilityLevel(wccInfo['dale_chall_index']));else $("#readability_level").text("N/A");$("#estimate_reading_time").text(Math.ceil(wccInfo['num_word']/READING_WPM)+' min.'); $("#estimate_speaking_time").text(Math.ceil(wccInfo['num_word']/SPEAKING_WPM)+' min.'); var MAX_NUMBER_TO_DISPLAY_PERCENTAGE_SIGN=10000; var numDifficultWords=wccInfo['num_difficult_words']<MAX_NUMBER_TO_DISPLAY_PERCENTAGE_SIGN?""+wccInfo['num_difficult_words']+" <span class='stat_percentage'>("+wccInfo['percentage_difficult_words']+"%)</span>":""+wccInfo['num_difficult_words']; $("#num_difficult_word").html(numDifficultWords); var numShortWords=wccInfo['num_short_word']<MAX_NUMBER_TO_DISPLAY_PERCENTAGE_SIGN?""+wccInfo['num_short_word']+" <span class='stat_percentage'>("+wccInfo['percentage_num_short_word']+"%)</span>":""+wccInfo['num_short_word']; $("#num_short_word").html(numShortWords); var numLongWords=wccInfo['num_long_word']<MAX_NUMBER_TO_DISPLAY_PERCENTAGE_SIGN?""+wccInfo['num_long_word']+" <span class='stat_percentage'>("+wccInfo['percentage_num_long_word']+"%)</span>":""+wccInfo['num_long_word']; $("#num_long_word").html(numLongWords); $("#longest_sentence_by_characters").text(wccInfo['longest_sentence_by_characters']); $("#longest_word_by_characters").text(wccInfo['longest_word_by_characters']); $("#longest_word_by_syllables").text(wccInfo['longest_word_by_syllables']); if(wccInfo['num_word']<MAX_WORDS_TO_DISPLAY_UNIQUENESS||withExtraStatistics==true){$("#num_unique_word").show(); $("#showExtraStatistics").hide(); var numUniqueWords=wccInfo['num_unique_word']<MAX_NUMBER_TO_DISPLAY_PERCENTAGE_SIGN?""+wccInfo['num_unique_word']+" <span class='stat_percentage'>("+wccInfo['percentage_num_unique_word']+"%)</span>":""+wccInfo['num_unique_word']; $("#num_unique_word").html(numUniqueWords);} else{$("#num_unique_word").hide(); $("#showExtraStatistics").show();} $("#automated_readability_index").text(wccInfo['automated_readability_index']);$("#coleman_liau_index").text(wccInfo['coleman_liau_index']);$("#flesch_reading_ease_score").text(wccInfo['flesch_reading_ease_score']); $("#flesch_kincaid_grade_level").text(wccInfo['flesch_kincaid_grade_level']);$("#gunning_fog_index").text(wccInfo['gunning_fog_index']);} else{$("#num_word").html(wccInfo['num_word']); $("#num_difficult_word").html("&nbsp;"); $("#num_short_word").html("&nbsp;");$("#num_long_word").html("&nbsp;"); $("#num_unique_word").html("&nbsp;"); $("#num_character").html(wccInfo['num_character']); $("#num_character_wo_spaces").html("&nbsp;"); $("#num_syllable").html("&nbsp;"); $("#num_mono_syllable").html("&nbsp;"); $("#num_poly_syllable").html("&nbsp;");$("#num_sentence").html("&nbsp;"); $("#num_paragraph").html("&nbsp;"); $("#avg_sentence_length").html("&nbsp;"); $("#avg_word_length").html("&nbsp;"); $("#dale_chall_readability").html("&nbsp;"); $("#readability_level").html("&nbsp;"); $("#automated_readability_index").html("&nbsp;"); $("#coleman_liau_index").html("&nbsp;"); $("#flesch_reading_ease_score").html("&nbsp;"); $("#flesch_kincaid_grade_level").html("&nbsp;"); $("#gunning_fog_index").html("&nbsp;");}} function getReadabilityLevel(score){ var readability=""; if(score>10) readability+="graduate";else if(score>9) readability+="13-15th";else if(score>8) readability+="11-12th";else if(score>7) readability+="9-10th";else if(score>6) readability+="7-8th";else if(score>5) readability+="5-6th";else readability+="< 4th"; return readability;} function displaywccInfoInTitle(wccInfo){ var WORDS=" words"; if(wccInfo['num_word']<=1) WORDS=" word";var CHARACTERS=" characters"; if(wccInfo['num_character']<=1) CHARACTERS=" character";var str=wccInfo['num_word']+WORDS+", "+wccInfo['num_character']+CHARACTERS+"."; var isNotEnglish=$("#isNotEnglish").prop('checked');if(!isNotEnglish&&wccInfo['num_character']>0){var readability="<span id='readability'> Readability level: ";if(wccInfo['dale_chall_index']>10) readability+="college graduate";else if(wccInfo['dale_chall_index']>9) readability+="college student";else if(wccInfo['dale_chall_index']>8) readability+="11-12th grade student";else if(wccInfo['dale_chall_index']>7) readability+="9-10th grade student";else if(wccInfo['dale_chall_index']>6) readability+="7-8th grade student";else if(wccInfo['dale_chall_index']>5) readability+="5-6th grade student";else readability+="lower than 4th grade student";str+=readability+"</span>";} $("#counter").html(str);} function sumWeight(weights){var sum=0;$.each(weights,function(){sum+=this;});return sum;} function displayWordCloud(){$('#myCanvasContainer').show();if(!$('#myCanvas').tagcanvas({weight:true,weightMode:"both",weightFrom:"data-weight",weightSizeMin:5,weightSizeMax:150},'tagList')){$('#myCanvasContainer').hide();}} function densityStats(wccInfo){var totalNumWord=wccInfo['num_word'];if(totalNumWord==0){$("#keyword_density-tab-1-table").html("");$("#keyword_density-tab-2-table").html("");$("#keyword_density-tab-3-table").html("");resizeHeightOfDefinitionBox();$(window).resize(resizeHeightOfDefinitionBox);return;} var oneWordFrequency=wccInfo["oneWordFrequency"];numberofTopWordFreq=$("#number_of_top_keywords_value").val();if(numberofTopWordFreq<=0){$("#keyword_density-tab-1-table").html('');$("#keyword_density-tab-2-table").html('');$("#keyword_density-tab-3-table").html('');return;} if(numberofTopWordFreq>oneWordFrequency.length) numberofTopWordFreq=oneWordFrequency.length;oneWordFrequencyHTML="";numberOfWordDisplayed=0;oneWordOrder=0;for(i=0;i<oneWordFrequency.length;i++){if(exclude_grammar_word_option&&(grammarWords.indexOf(oneWordFrequency[i][0])>-1||oneWordFrequency[i][0].length==1)) continue;oneWordOrder++;oneWordFrequencyValue=oneWordFrequency[i][1]+"<span class='stat_percentage'> ("+Math.round(100*oneWordFrequency[i][1]/totalNumWord*10)/10+"%)</span>";oneWordFrequencyHTML+='<tr><td style="width: 50%;">'+oneWordOrder+'. '+oneWordFrequency[i][0]+'</td><td style="width: 50%;">'+oneWordFrequencyValue+'</td></tr>';numberOfWordDisplayed++;if(numberOfWordDisplayed>=numberofTopWordFreq) break;} oneWordFrequencyHTML+='<div class="clear"></div>';$("#keyword_density-tab-1-table").html(oneWordFrequencyHTML);var twoWordFrequency=wccInfo["twoWordFrequency"];if(numberofTopWordFreq>twoWordFrequency.length) numberofTopWordFreq=twoWordFrequency.length;twoWordFrequencyHTML="";numberOfWordDisplayed=0;twoWordOrder=0;for(i=0;i<twoWordFrequency.length;i++){if(exclude_grammar_word_option&&(grammarWords.indexOf(twoWordFrequency[i][0])>-1||twoWordFrequency[i][0].length==1)) continue;twoWordOrder++;twoWordFrequencyValue=twoWordFrequency[i][1]+"<span class='stat_percentage'> ("+Math.round(100*twoWordFrequency[i][1]/(totalNumWord-1)*10)/10+"%)</span>";twoWordFrequencyHTML+='<tr><td style="width: 50%;">'+twoWordOrder+'. '+twoWordFrequency[i][0]+'</td><td style="width: 50%;">'+twoWordFrequencyValue+'</td></tr>';numberOfWordDisplayed++;if(numberOfWordDisplayed>=numberofTopWordFreq) break;} twoWordFrequencyHTML+='<div class="clear"></div>';$("#keyword_density-tab-2-table").html(twoWordFrequencyHTML);var threeWordFrequency=wccInfo["threeWordFrequency"];if(numberofTopWordFreq>threeWordFrequency.length) numberofTopWordFreq=threeWordFrequency.length;threeWordFrequencyHTML="";numberOfWordDisplayed=0;threeWordOrder=0;for(i=0;i<threeWordFrequency.length;i++){if(exclude_grammar_word_option&&(grammarWords.indexOf(threeWordFrequency[i][0])>-1||threeWordFrequency[i][0].length==1)) continue;threeWordOrder++;threeWordFrequencyValue=threeWordFrequency[i][1]+"<span class='stat_percentage'> ("+Math.round(100*threeWordFrequency[i][1]/(totalNumWord-1)*10)/10+"%)</span>";threeWordFrequencyHTML+='<tr><td style="width: 50%;">'+threeWordOrder+'. '+threeWordFrequency[i][0]+'</td><td style="width: 50%;">'+threeWordFrequencyValue+'</td></tr>';numberOfWordDisplayed++;if(numberOfWordDisplayed>=numberofTopWordFreq) break;} threeWordFrequencyHTML+='<div class="clear"></div>';$("#keyword_density-tab-3-table").html(threeWordFrequencyHTML);resizeHeightOfDefinitionBox();$(window).resize(resizeHeightOfDefinitionBox);} String.prototype.toTitleCase=function(){var i,str,lowers,uppers;str=this.replace(/([^\W_]+[^\s-]*) */g,function(txt){return txt.charAt(0).toUpperCase()+txt.substr(1).toLowerCase();});lowers=['A','An','The','And','But','Or','For','Nor','As','At','By','For','From','In','Into','Near','Of','On','Onto','To','With'];for(i=0;i<lowers.length;i++) str=str.replace(new RegExp('\\s'+lowers[i]+'\\s','g'),function(txt){return txt.toLowerCase();});uppers=['Id','Tv'];for(i=0;i<uppers.length;i++) str=str.replace(new RegExp('\\b'+uppers[i]+'\\b','g'),uppers[i].toUpperCase());return str;} String.prototype.toAlternatingCase=function(){var str="",i;var isLower=false;for(i=0;i<this.length;i++){if(/\s/.test(this[i])){str+=this[i];continue;} if(isLower) str+=this[i].toLowerCase();else str+=this[i].toUpperCase();if(this[i]!=this[i].toUpperCase()||this[i]!=this[i].toLowerCase()) isLower=!isLower;} return str;} function convertCaseForText(){var text=$("#textbox").val();var buttonID=$(this).attr("id");switch(buttonID){case "toUpperCaseButton":undoingText=text;text=text.toUpperCase();break;case "toLowerCaseButton":undoingText=text;text=text.toLowerCase();break;case "toSentenceCaseButton":undoingText=text;text=text+'.' text=text.replace(/\w[^.?!:\n]*[.?!:\n$]+/g,function(txt){return txt.charAt(0).toUpperCase()+txt.substr(1).toLowerCase();});text=text.substr(0,text.length-1);break;case "toTitleCaseButton":undoingText=text;text=text.toTitleCase();break;case "toAlternatingCaseButton":undoingText=text;text=text.toAlternatingCase();break;case "toToggleCaseButton":undoingText=text;text=text.replace(/[\w]*/g,function(txt){return txt.charAt(0).toLowerCase()+txt.substr(1).toUpperCase();});break;case "htmlStripButton":undoingText=text;html="<html>"+text+"</html>";text=$(html).text();break;case "clearTextButton":undoingText=text;text="";break;case "undoButton":if(undoingText.length!=0){var temp=text;text=undoingText;undoingText=temp;} break;} $("#textbox").val(text);updateStats();} function clear_text(){$("#textbox").val("");$("#queue").hide();updateStatsWithExtraStatistics();} function isNotEnglishUpdate(){getwccInfo();$("#counter").focus();} $(document).ready(function(){var textbox=$("#textbox");textbox.on('input propertychange updateInfo keyup mousedown mouseup',getwccInfo);textbox.on('paste',function(){setTimeout(function(){getwccInfo();},10);});$("#number_of_top_keywords_value").on('keyup keypress blur change',getwccInfo);$("#number_of_top_keywords_value").on('keyup blur change',getwccInfo);$("#extraStatisticsButton").click(updateStatsWithExtraStatistics);resizeHeightOfDefinitionBox();$(window).resize(resizeHeightOfDefinitionBox);var timeStamp=Date.now?Date.now():new Date().getTime();$('#file_upload').uploadifive({'auto':true,'fileSizeLimit':10240,'queueSizeLimit':1,'formData':{'timestamp':timeStamp,'token':'unique_salt'+timeStamp},'queueID':'queue','uploadScript':'helpers/uploadifive.php','onUploadComplete':updateInputText,'onUpload':showQueue});$("#keyword_density_tabs").tabs();$("[name='exclude-grammar-word-switcher']").bootstrapSwitch();$('input[name="exclude-grammar-word-switcher"]').on('switchChange.bootstrapSwitch',function(event,state){exclude_grammar_word_option=state;var text=$("#textbox").val();wccInfo=$.wordCountTool.getwccInfo(text);densityStats(wccInfo);});if(typeof(Storage)!=="undefined"){oldText=localStorage.getItem(INPUTED_TEXT_KEY);$("#textbox").val(oldText);getwccInfo();} $("#close_file").click(clear_text);updateColorUI();});function updateColorUI(){if($("#textbox").val().length>0){$("#close_file").css('color','#E83B1C');} else{$("#close_file").css('color','#908280');}} function saveTextToStorage(text){updateColorUI();localStorage.setItem(INPUTED_TEXT_KEY,text);} function showQueue(){$("#queue").show();} function updateInputText(file,data){$('#textbox').val(data);updateStatsWithExtraStatistics();$("#counter").focus();} function resizeHeightOfDefinitionBox(){if(isInMobile){return;} var definitionBox=$("#definitionBox").height();var infoBox=$("#infoBox").height();if(infoBox>definitionBox) $("#definitionBox").height($("#infoBox").height());else $("#infoBox").height($("#definitionBox").height());var statistics_height=$("#statistics").height();var textToAnalyzeContainer_height=$("#textToAnalyzeContainer").height();if(textToAnalyzeContainer_height>statistics_height) $("#statistics").height(textToAnalyzeContainer_height);else{}} function generate_customized_ads(){var img_url="assets/ads/why-would-you-appear-on-tv-news.jpg";var img_str="<a rel='nofollow' target='_blank' href='http://funfortuneteller.net/app/what-would-you-on-the-tv-breaking-news-for'><img id='customized_img_ad' src='"+img_url+"'/></a>";$("#customized_ads").html(img_str);} grammarWords=['about','after','ago','all','also','an','and','any','are','as','at','be','been','before','both','but','by','can','did','do','does','done','edit','even','every','for','from','had','has','have','he','here','him','his','however','if','in','into','is','it','its','less','many','may','more','most','much','my','no','not','often','quote','of','on','one','only','or','other','our','out','re','says','she','so','some','soon','such','than','that','the','their','them','then','there','these','they','this','those','though','through','to','under','use','using','ve','was','we','were','what','where','when','whether','which','while','who','whom','with','within','you','your']; </script>