TurretBot

Word Generator

Mar 10th, 2015
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $name : Word Generator
  2. $author : TurretBot
  3. $description : A simple word generator that uses each letter's usage frequency, from Wikipedia: en.wikipedia.org/wiki/Letter_frequency
  4. $amount : 1
  5. $picture : http://s8.postimg.org/db4q9xgyp/insults.png
  6. $button : Word!
  7.  
  8. //Raw percentage from aforementioned Wikipedia page
  9. $vowelchance
  10. a {8.167%}
  11. e {12.702%}
  12. i {6.966%}
  13. o {7.507%}
  14. u {2.758%}
  15. y {1.974%}
  16.  
  17. $consonantchance
  18. b {1.492%}
  19. c {2.782%}
  20. d {4.253%}
  21. f {2.228%}
  22. g {2.015%}
  23. h {6.094%}
  24. j {0.153%}
  25. k {0.772%}
  26. l {4.025%}
  27. m {2.406%}
  28. n {6.749%}
  29. p {1.929%}
  30. [qu|q] {0.095%}
  31. r {5.987%}
  32. s {6.327%}
  33. t {9.056%}
  34. v {0.978%}
  35. w {2.360%}
  36. x {0.150%}
  37. z {0.074%}
  38.  
  39. //Multiplied so the most common letter is 100%
  40. $vowel
  41. a {64.296961108487%}
  42. e
  43. i {54.84175720359%}
  44. o {59.100928987561%}
  45. u {21.713116044717%}
  46. y {15.540859707133%}
  47.  
  48. $consonant
  49. b {16.475265017668%}
  50. c {30.719964664311%}
  51. d {46.963339222615%}
  52. f {24.602473498233%}
  53. g {22.250441696113%}
  54. h {67.292402826855%}
  55. j {1.6894876325088%}
  56. k {8.5247349823322%}
  57. l {44.445671378092%}
  58. m {26.568021201413%}
  59. n {74.525176678445%}
  60. p {21.300795053004%}
  61. [qu|q] {1.0490282685512%}
  62. r {66.110865724382%}
  63. s {69.865282685512%}
  64. t
  65. v {10.799469964664%}
  66. w {26.060070671378%}
  67. x {1.6563604240283%}
  68. z {0.81713780918728%}
  69.  
  70. //Letter combinations
  71. $digraphchance
  72. bl[vowel] {6.0053%}
  73. br[vowel] {8.932604%}
  74. ch[vowel] {16.953508%}
  75. ck[vowel] {2.147704%}
  76. cl[vowel] {11.19755%}
  77. cr[vowel] {16.655834%}
  78. dr[vowel] {25.462711%}
  79. fl[vowel] {8.9677%}
  80. fr[vowel] {13.339036%}
  81. gh[vowel] {12.27941%}
  82. gl[vowel] {8.110375%}
  83. gr[vowel] {12.063805%}
  84. ng[vowel] {13.599235%}
  85. ph[vowel] {11.755326%}
  86. pl[vowel] {7.764225%}
  87. pr[vowel] {11.548923%}
  88. sc[vowel] {17.601714%}
  89. sh[vowel] {38.556738%}
  90. sk[vowel] {4.884444%}
  91. sl[vowel] {25.466175%}
  92. sm[vowel] {15.222762%}
  93. sn[vowel] {42.700923%}
  94. sp[vowel] {40.030929%}
  95. st[vowel] {57.297312%}
  96. sw[vowel] {14.93172%}
  97. th[vowel] {55.187264%}
  98. tr[vowel] {54.218272%}
  99. tw[vowel] {21.37216%}
  100. wh[vowel] {14.38184%}
  101. wr[vowel] {14.12932%}
  102.  
  103. $digraph
  104. bl {10.48092998%}
  105. br {15.58989511%}
  106. ch {29.58861844%}
  107. ck {3.748344837%}
  108. cl {19.54286006%}
  109. cr {29.06909396%}
  110. dr {44.43956025%}
  111. fl {15.65114746%}
  112. fr {23.28035275%}
  113. gh {21.43100868%}
  114. gl {14.15487528%}
  115. gr {21.05471759%}
  116. ng {23.73447286%}
  117. ph {20.51633536%}
  118. pl {13.55074661%}
  119. pr {20.15610433%}
  120. sc {30.71991941%}
  121. sh {67.2923037%}
  122. sk {8.524722424%}
  123. sl {44.4456059%}
  124. sm {26.56798206%}
  125. sn {74.52506689%}
  126. sp {69.86517977%}
  127. st
  128. sw {26.06003228%}
  129. th {96.31722811%}
  130. tr {94.62606576%}
  131. tw {37.3004034%}
  132. wh {25.10033772%}
  133. wr {24.65961961%}
  134.  
  135. //SOON...
  136. $prefix
  137. [vowel][syllable][consonantchance]
  138.  
  139. //Piecing it together
  140. $syllable
  141. [consonant][vowel]
  142. [digraph][vowel]
  143. [consonantchance][consonantchance][consonant][vowel][vowelchance] {2%}
  144.  
  145. $word
  146. [vowelchance][syllable,x2-3][consonantchance]
  147. [digraphchance][syllable,x2-3][consonantchance] {99%}
  148. [vowelchance][syllable,x2-3][digraphchance] {97%}
  149. [[vowel]|[vowelchance][digraph][vowel]][syllable][[consonant]|[digraph][vowel]]
  150. [[vowelchance]|[digraphchance]][syllable,x1-6][[consonantchance]|[digraphchance]] {25%}
  151.  
  152. $output
  153. [Word].
  154. [Word][s]. {75%}
  155. //NEXT: Prefixes/suffixes
Advertisement
Add Comment
Please, Sign In to add comment