Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,10 @@ from nltk.corpus import words
|
|
5 |
st.title("Word Games")
|
6 |
st.markdown("### Enter two to seven letters to get a high score of as many words as you can of that length. Leave a letter blank to confine word search to a smaller number of letters.")
|
7 |
|
|
|
|
|
|
|
|
|
8 |
@st.cache # cache download processes so they only execute once with same inputs
|
9 |
def download():
|
10 |
nltk.download('words')
|
@@ -131,7 +135,3 @@ def define(word):
|
|
131 |
for word in clue_result7:
|
132 |
content = define(word)
|
133 |
st.write(content)
|
134 |
-
|
135 |
-
st.markdown("### Vowels and Consonants in Descending Frequencies:")
|
136 |
-
st.markdown("E, A, I, O, U, Y")
|
137 |
-
st.markdown("R, T, N, S, L, C, D, P, M, H, G, B, F, W, K, V, X, Z, J, Q")
|
|
|
5 |
st.title("Word Games")
|
6 |
st.markdown("### Enter two to seven letters to get a high score of as many words as you can of that length. Leave a letter blank to confine word search to a smaller number of letters.")
|
7 |
|
8 |
+
st.markdown("### Letters in Descending Frequency and Proportion in Words")
|
9 |
+
st.markdown("Vowels: E, A, I, O, U, Y")
|
10 |
+
st.markdown("Consonants: R, T, N, S, L, C, D, P, M, H, G, B, F, W, K, V, X, Z, J, Q")
|
11 |
+
|
12 |
@st.cache # cache download processes so they only execute once with same inputs
|
13 |
def download():
|
14 |
nltk.download('words')
|
|
|
135 |
for word in clue_result7:
|
136 |
content = define(word)
|
137 |
st.write(content)
|
|
|
|
|
|
|
|