SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/config/admin_seo.php

Copyright (C) 2018 Karmabunny Pty Ltd.

This file is a part of SproutCMS.

SproutCMS is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation, either
version 2 of the License, or (at your option) any later version.

For more information, visit <http://getsproutcms.com>.
  1. <?php
  2. /**
  3.  * Copyright (C) 2018 Karmabunny Pty Ltd.
  4.  *
  5.  * This file is a part of SproutCMS.
  6.  *
  7.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  8.  * of the GNU General Public License as published by the Free Software Foundation, either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * For more information, visit <http://getsproutcms.com>.
  12.  */
  13.  
  14.  
  15. // Minimum word count
  16. $config['word_count'] = 300;
  17.  
  18.  
  19. // Average words per sentence as percentage
  20. $config['average_words_sentence'] = 20;
  21.  
  22.  
  23. // Readability score 0 = hard, 100 = easy
  24. $config['readability_scores'] = [
  25. [
  26. 'range' => [90, 100],
  27. 'desc' => 'Very easy to read.',
  28. 'type' => 'good',
  29. 'fix' => '',
  30. ],
  31. [
  32. 'range' => [80, 90],
  33. 'desc' => 'Easy to read.',
  34. 'type' => 'good',
  35. 'fix' => '',
  36. ],
  37. [
  38. 'range' => [70,80],
  39. 'desc' => 'Fairly easy to read.',
  40. 'type' => 'good',
  41. 'fix' => '',
  42. ],
  43. [
  44. 'range' => [60,70],
  45. 'desc' => 'Easily understood.',
  46. 'type' => 'good',
  47. 'fix' => '',
  48. ],
  49. [
  50. 'range' => [50,60],
  51. 'desc' => 'Fairly difficult to read.',
  52. 'type' => 'problem',
  53. 'fix' => 'Write short sentences, add subheadings and use connecting words.',
  54. ],
  55. [
  56. 'range' => [30,50],
  57. 'desc' => 'Difficult to read.',
  58. 'type' => 'problem',
  59. 'fix' => 'Write short sentences, add subheadings and use connecting words.',
  60. ],
  61. [
  62. 'range' => [0,30],
  63. 'desc' => 'Very difficult to read.',
  64. 'type' => 'problem',
  65. 'fix' => 'Write short sentences, add subheadings and use connecting words.',
  66. ]
  67. ];
  68.  
  69.  
  70. // SEO words to ignore
  71. $config['stop_words'] = ["a", "about", "above", "above", "across", "after", "afterwards", "again", "against", "all", "almost",
  72. "alone", "along", "already", "also","although","always","am","among", "amongst", "amoungst", "amount", "an", "and", "another",
  73. "any","anyhow","anyone","anything","anyway", "anywhere", "are", "around", "as", "at", "b", "back","be","became", "because","become",
  74. "becomes", "becoming", "been", "before", "beforehand", "behind", "being", "below", "beside", "besides", "between", "beyond",
  75. "bill", "both", "bottom","but", "by", "c", "call", "can", "cannot", "cant", "co", "con", "could", "couldnt", "cry", "d", "de", "describe",
  76. "detail", "do", "done", "down", "due", "during", "each", "e", "eg", "eight", "either", "eleven","else", "elsewhere", "empty", "enough",
  77. "etc", "even", "ever", "every", "everyone", "everything", "everywhere", "except", "f", "few", "fifteen", "fill", "find", "fire",
  78. "first", "five", "for", "former", "formerly", "forty", "found", "four", "from", "front", "full", "further", "g", "get", "give", "go",
  79. "h", "had", "has", "hasnt", "have", "he", "hence", "her", "here", "hereafter", "hereby", "herein", "hereupon", "hers", "herself", "him",
  80. "himself", "his", "how", "however", "hundred", "i", "ie", "if", "in", "inc", "indeed", "interest", "into", "is", "it", "its", "itself",
  81. "j", "k", "keep", "l", "last", "latter", "latterly", "least", "less", "ltd", "m", "made", "many", "may", "me", "meanwhile", "might", "mill", "mine",
  82. "more", "moreover", "most", "mostly", "move", "much", "must", "my", "myself", "n", "name", "namely", "neither", "never", "nevertheless",
  83. "next", "nine", "no", "nobody", "none", "noone", "nor", "not", "nothing", "now", "nowhere", "o", "of", "off", "often", "on", "once", "one",
  84. "only", "onto", "or", "other", "others", "otherwise", "our", "ours", "ourselves", "out", "over", "own", "p", "part", "per", "perhaps",
  85. "please", "put", "q", "r", "rather", "re", "s", "same", "see", "seem", "seemed", "seeming", "seems", "serious", "several", "she", "should", "show",
  86. "side", "since", "sincere", "six", "sixty", "so", "some", "somehow", "someone", "something", "sometime", "sometimes", "somewhere",
  87. "still", "such", "system", "t", "take", "ten", "than", "that", "the", "their", "them", "themselves", "then", "thence", "there", "thereafter",
  88. "thereby", "therefore", "therein", "thereupon", "these", "they", "thick", "thin", "third", "this", "those", "though", "three", "through",
  89. "throughout", "thus", "to", "together", "too", "top", "toward", "towards", "twelve", "twenty", "two", "u", "un", "under", "until", "up",
  90. "upon", "us", "v", "very", "via", "w", "was", "we", "well", "were", "what", "whatever", "when", "whence", "whenever", "where", "whereafter", "whereas",
  91. "whereby", "wherein", "whereupon", "wherever", "whether", "which", "while", "whither", "who", "whoever", "whole", "whom", "whose", "why",
  92. "will", "with", "within", "without", "would", "x", "y", "yet", "you", "your", "yours", "yourself", "yourselves", "z",
  93. ];
  94.